码迷,mamicode.com
首页 > Web开发 > 详细

向Kubernetes集群删除Node

时间:2018-12-29 15:55:51      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:arm   bsp   lse   ash   stat   let   status   pass   for   

Kubernetes集群中移除Node
在master节点上执行:

kubectl drain swarm1 --delete-local-data --force --ignore-daemonsets
kubectl delete node swarm1

在node2上执行:

kubeadm reset



实例操作:

[root@compass-control-master3]:~# kubectl get node
NAME                      STATUS    ROLES     AGE       VERSION
kube-master-1             Ready     <none>    171d      v1.10.6
kube-master-2             Ready     <none>    171d      v1.10.6
kube-master-3             Ready     <none>    171d      v1.10.6
kube-node-1               Ready     <none>    171d      v1.10.6
kube-node-192-168-0-213   Ready     <none>    2m        v1.10.6
kube-node-2               Ready     <none>    171d      v1.10.6
[root@compass-control-master3]:~# 
[root@compass-control-master3]:~# kubectl delete node kube-node-2
node "kube-node-2" deleted
[root@compass-control-master3]:~# kubectl get node
NAME                      STATUS    ROLES     AGE       VERSION
kube-master-1             Ready     <none>    171d      v1.10.6
kube-master-2             Ready     <none>    171d      v1.10.6
kube-master-3             Ready     <none>    171d      v1.10.6
kube-node-1               Ready     <none>    171d      v1.10.6
kube-node-192-168-0-213   Ready     <none>    4m        v1.10.6

  

 

向Kubernetes集群删除Node

标签:arm   bsp   lse   ash   stat   let   status   pass   for   

原文地址:https://www.cnblogs.com/weifeng1463/p/10196220.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!