(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{216:function(t,e,a){t.exports=a.p+"assets/img/image-20190721104348908.ce6e526d.png"},217:function(t,e,a){t.exports=a.p+"assets/img/image-20190721104415732.07ea4278.png"},218:function(t,e,a){t.exports=a.p+"assets/img/image-20190721104522870.6c74e0bb.png"},344:function(t,e,a){"use strict";a.r(e);var s=a(0),r=Object(s.a)({},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"日志及终端"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#日志及终端","aria-hidden":"true"}},[t._v("#")]),t._v(" 日志及终端")]),t._v(" "),s("h1",{attrs:{id:"日志"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#日志","aria-hidden":"true"}},[t._v("#")]),t._v(" 日志")]),t._v(" "),s("p",[t._v("通过 Kuboard 可以实时跟踪容器的日志信息。")]),t._v(" "),s("p",[t._v("假设您已经进入 "),s("em",[s("strong",[t._v("工作负载")])]),t._v(" 详情页，如下图所示：")]),t._v(" "),s("p",[s("img",{attrs:{src:a(216),alt:"image-20190721104348908"}})]),t._v(" "),s("ul",[s("li",[s("p",[t._v("点击容器信息中的 "),s("em",[s("strong",[t._v("日志")])]),t._v(" 按钮")]),t._v(" "),s("p",[t._v("可进入日志追踪界面，如下图所示：")])])]),t._v(" "),s("p",[s("img",{attrs:{src:a(217),alt:"image-20190721104415732"}})]),t._v(" "),s("h1",{attrs:{id:"终端"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#终端","aria-hidden":"true"}},[t._v("#")]),t._v(" 终端")]),t._v(" "),s("ul",[s("li",[s("p",[t._v("点击容器信息中的 "),s("em",[s("strong",[t._v("终端")])]),t._v(" 按钮")]),t._v(" "),s("p",[t._v("可进入终端界面，如下图所示：")]),t._v(" "),s("blockquote",[s("ul",[s("li",[s("p",[t._v("在终端中，可以执行的 shell 命令取决于该容器预装的命令。许多容器为了精简自身的大小，只保留了最基本的命令。")])]),t._v(" "),s("li",[s("p",[t._v("通常会进入终端执行如下诊断操作：")]),t._v(" "),s("ul",[s("li",[t._v("export 命令查看容器内的环境变量是否被正确设置")]),t._v(" "),s("li",[t._v("ping, curl 命令检查容器内与集群内其他服务，集群外服务的网络连通性")]),t._v(" "),s("li",[t._v("vi 命令，临时修改容器内应用程序的配置，并在容器内重启应用程序，以临时性的尝试修复问题，如果有效再将修改更新到应用程序代码或者 Dockerfile")])])])])])])]),t._v(" "),s("p",[s("img",{attrs:{src:a(218),alt:"image-20190721104522870"}})])])},[],!1,null,null,null);e.default=r.exports}}]);