lagisetti sambasiva rao:
For Ex: i have doubt like drain a node(i.e: node01) reschedule the pods running on it, Lets assume node01 having like below workloads. and Pod test-pd have local-data running with emptyDir.
lagisetti sambasiva rao:
In the above scenario 1) before running drain --force command , do we need to take the backup , schedule the pods on other nodes which are not part of replicationsets 2) is it fine to run as below
lagisetti sambasiva rao:
kubectl drain node01 --ignore-daemonsets --force --delete-local-data
Jaspreet Singh:
No, just move all the pods to another nodes
lagisetti sambasiva rao:
pods which are not part of replicasets can’t be moved right
lagisetti sambasiva rao:
those will be deleted when we run the --force
unnivkn:
in case, if you have those kind of pods…you need to take backup before drain the node & restore it to other nodes .
Jaspreet Singh:
Yes. Those not part of replica-set will be deleted.