Reschedule pod if a node is made unavailable

Hi,

I need to reschedule all pods running on node1 on node2 as node1 is made unavailable.
So, if I use drain node1 it evicts all pods and I will lose them.
I tried tainting node1 also but its not rescheduling pods to node2.

What can be done here? Is my approach wrong?

Can anyone help here?

hello, agrawalgargieic
If a single pod is not a part of ReplicaSets/Deployments/ReplicationController/Job/Daemonset then after perform drain node. That pod will gone forever and not recoverable. That’s why pod is not scheduling into the other nodes. Try to deploy pod under the deployment.