菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
44
0

k8s删除节点

原创
05/13 14:22
阅读数 27152

k8s 删除节点

线上环境

# ctl get nodes
NAME                       STATUS   ROLES    AGE    VERSION
10.0.0.123   Ready    <none>   104d   v1.20
10.0.0.154   Ready    <none>   11d    v1.20
10.0.0.155   Ready    <none>   11d    v1.20
10.0.0.157   Ready    <none>   116s   v1.20
#  ctl cordon 10.0.0.155
node/10.0.0.155 cordoned
# ctl get pod

# ctl drain --ignore-daemonsets 10.0.0.155
node/10.0.0.155 already cordoned
error: unable to drain node "10.0.0.155", aborting command...

There are pending nodes to be drained:
 10.0.0.155
error: cannot delete Pods with local storage (use --delete-local-data to override): gitlab-runner/gitlab-runner-gitlab-runner-c669795b4-4p6kp, gitlab-runner/gitlab-runner-gitlab-runner-c669795b4-kscgx, istio-system/grafana-95d4f8f58-zpvvg, istio-system/jaeger-7d656bc7c6-z7v4m, istio-system/prometheus-6d87d85c88-vwrqt

# ctl drain --ignore-daemonsets --delete-local-data  10.0.0.155


# ctl delete node 10.0.0.155
node "10.0.0.155" deleted

发表评论

0/200
44 点赞
0 评论
收藏