I have statefulset deployed on K8s cluster with 1 replica. Pod was running fine until the node on which the pod was running went into “NotReady” State.
After this my pod went to Terminating state and got stuck in that state.
I was hoping for my pod to get reschedule on to another healthy node but it didn’t got reschedule and my application had downtime
I even created a PDB with minAvailable as 1 to maintain 1 pod Up all time but even this didn’t help
Any suggestion how this can be handled in statefulset
Kubectl version
Client Version: version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.13”, GitCommit:“53c7b65d4531a749cd3a7004c5212d23daa044a9”, GitTreeState:“clean”, BuildDate:“2021-07-15T20:58:11Z”, GoVersion:“go1.15.14”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.13”, GitCommit:“53c7b65d4531a749cd3a7004c5212d23daa044a9”, GitTreeState:“clean”, BuildDate:“2021-07-15T20:53:19Z”, GoVersion:“go1.15.14”, Compiler:“gc”, Platform:“linux/amd64”}