KubeStatefulSetUpdateNotRolledOut#
There is a modification on a StatefulSet and Kubernetes should propagate this modification on the pods it controls. This alert happens when the Kubernetes fails to propage the modification (remove the current pods and promote new pods with the modifications).
Troubleshooting hints :
- Get the StatefulSet name from the alert (and its namespace too)
- Get the pods controlled by the Statefulset :
kubectl -n <namespace> get sts <sts name> -o json | jq '.spec.selector'- with the returned selector (usually labels) you can retrieve the pods
- Describe the pod and StatefulSet and check for why there is a problem
kubectl -n <namespace> describe pod <pod name>kubectl -n <namespace> describe sts <sts name>
- Reason why the StatefulSet fails to roll out the pods it control should be visible with those commands.
- Sometimes there is a K8S operator that will control the StatefulSet and may be implicated in the problem.