StatefulSet is used to run PostgreSQL pods across Kubernetes nodes for high availability. When a pod fails, StatefulSet will restart the pod on the same node. However, if the entire node fails, the PostgreSQL pod will not failover to another node by default. To manually failover the pod, it needs to be force deleted and it will restart on a different ready node. However, manual failovers are not recommended for production use.