Hi All, i want reschedule a pod to different node .so can i run kubectl drain . . .

Vinoth Ugin Raj:
Hi All, i want reschedule a pod to different node .so can i run kubectl drain <node name> (or) kubectl drain <nodename> --ignore-daemonset??

Ninad Desai:
if you want to forcefully do it then yes you can or other better approach is to use , a)node selector or b)nodeName or c) nodeAffinity way

Mohamed Ayman:
Just one POD or all the PODs inside a node?

Mohamed Ayman:
kubectl drain command is used to reschedule all the PODs inside the node to make some maintenance on the node.

Vinoth Ugin Raj:
@Mohamed Ayman - I have one more question about etcd backup and restore. Not sure which one i need to use for backup and restore. 1. https://github.com/mmumshad/kubernetes-cka-practice-test-solution-etcd-backup-and-restore 2. https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/practice-questions-answers/cluster-maintenance/backup-etcd/etcd-backup-and-restore.md|https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/practice-questions[…]wers/cluster-maintenance/backup-etcd/etcd-backup-and-restore.md

Vinoth Ugin Raj:
please help to clarify

Vinoth Ugin Raj:
@Mohamed Ayman And if i want to reschedule single pod, then also i can use “kubectl drain” command right?

Ninad Desai:
nope it wont help since it will drain all the pods from that nodes to some other nodes