LoginSignup
2
1

More than 3 years have passed since last update.

特定のノードから別のノードへPodを移動する

Posted at

Podを別ノードへ退避

  • --ignore-daemonsets
    • Ignore DaemonSet-managed pods.
    • DaemonSetが管理しているPodは無視することで、別のノードで起動し直す
  • --delete-local-data
    • -Continue even if there are pods using emptyDir (local data that will be deleted when the node is drained).
    • enmptyDirオプションでPod内にファイルがあった場合それが失われてしまう
kubectl drain <node> --delete-local-data --ignore-daemonsets

ノードを確認

  • Ready,SchedulingDisabledとなっていれば、停止可能
kubectl get nodes

ノードを復帰

kubectl uncordon <node>
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1