(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{197:function(t,a,e){t.exports=e.p+"assets/img/image-20190720224950653.857d1b1e.png"},198:function(t,a,e){t.exports=e.p+"assets/img/image-20190720225123111.c2b02f0c.png"},199:function(t,a,e){t.exports=e.p+"assets/img/image-20190720225222622.2081299f.png"},335:function(t,a,e){"use strict";e.r(a);var r=e(0),s=Object(r.a)({},function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"计算资源管理"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#计算资源管理","aria-hidden":"true"}},[t._v("#")]),t._v(" 计算资源管理")]),t._v(" "),r("h2",{attrs:{id:"前提"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#前提","aria-hidden":"true"}},[t._v("#")]),t._v(" 前提")]),t._v(" "),r("p",[t._v("必须具备如下条件：")]),t._v(" "),r("ul",[r("li",[t._v("Kubernetes 集群")]),t._v(" "),r("li",[t._v("已在集群中安装 Kuboard")])]),t._v(" "),r("h2",{attrs:{id:"添加节点"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#添加节点","aria-hidden":"true"}},[t._v("#")]),t._v(" 添加节点")]),t._v(" "),r("p",[t._v("集群完成安装后，可以随时向集群中添加计算节点，请参考 "),r("router-link",{attrs:{to:"/install/install-k8s.html#初始化-worker节点"}},[t._v("初始化 worker 节点")])],1),t._v(" "),r("h2",{attrs:{id:"查看节点"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#查看节点","aria-hidden":"true"}},[t._v("#")]),t._v(" 查看节点")]),t._v(" "),r("p",[t._v("登录 Kuboard 之后，即可看到集群中的计算资源列表，在左下角，如下图所示：")]),t._v(" "),r("p",[r("img",{attrs:{src:e(197),alt:"image-20190720224950653"}})]),t._v(" "),r("ul",[r("li",[t._v("点击 "),r("em",[r("strong",[t._v("demo-worker002")])]),t._v(" 可查看该节点的详细信息，如下图所示：")])]),t._v(" "),r("p",[r("img",{attrs:{src:e(198),alt:"image-20190720225123111"}})]),t._v(" "),r("h2",{attrs:{id:"移除节点"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#移除节点","aria-hidden":"true"}},[t._v("#")]),t._v(" 移除节点")]),t._v(" "),r("ul",[r("li",[r("p",[t._v("点击 "),r("em",[r("strong",[t._v("节点")])]),t._v(" 详情页上方的 "),r("em",[r("strong",[t._v("删除")])])]),t._v(" "),r("p",[t._v("并确认要删除的节点的名称后，即可删除该节点")])])]),t._v(" "),r("p",[r("img",{attrs:{src:e(199),alt:"image-20190720225222622"}})]),t._v(" "),r("blockquote",[r("ul",[r("li",[r("p",[t._v("此时只是从 kubenetes 集群的配置中删除了该节点，该节点上的工作负载将被自动迁移到其他可用节点上。如果重启该节点对应的 linux 操作系统，该节点会重新注册到集群中来。")])]),t._v(" "),r("li",[r("p",[t._v("要想彻底删除该节点，您还需要登录该节点所在机器的 linux 终端，并以 root 身份执行如下命令")]),t._v(" "),r("div",{staticClass:"language-bash extra-class"},[r("pre",{pre:!0,attrs:{class:"language-bash"}},[r("code",[t._v("kubadm reset\n")])])])])])])])},[],!1,null,null,null);a.default=s.exports}}]);