blog/kubernetes/mantaince/delete_node.md

14 lines
162 B
Markdown
Raw Normal View History

2022-11-15 15:08:46 +08:00
标记节点为不可调度
```bash
kubectl cordon node2 hp800g3
```
排空节点
kubectl drain node2 hp800g3
删除节点
kubectl delete node node2 hp800g3