KubernetesStatefulsetUpdateNotRolledOut #
StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} update has not been rolled out.
Alert Rule
alert: KubernetesStatefulsetUpdateNotRolledOut
annotations:
description: |-
StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} update has not been rolled out.
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/kubestate-exporter/kubernetesstatefulsetupdatenotrolledout/
summary: Kubernetes StatefulSet update not rolled out ({{ $labels.namespace }}/{{
$labels.statefulset }})
expr: max without (revision) (kube_statefulset_status_current_revision unless kube_statefulset_status_update_revision)
* (kube_statefulset_replicas != kube_statefulset_status_replicas_updated)
for: 10m
labels:
severity: warning
Meaning #
The KubernetesStatefulsetUpdateNotRolledOut alert is triggered when a StatefulSet update has not been rolled out to all replicas within a 10-minute window. This alert indicates that there is an issue with the deployment or scaling of the StatefulSet, which may lead to inconsistent or outdated application behavior.
Impact #
The impact of this alert can be significant, as it may result in:
- Inconsistent application behavior across replicas
- Rollback or failure to apply updates, potentially leading to security vulnerabilities or feature gaps
- Increased latency or errors due to outdated or inconsistent application versions
- Decreased confidence in the reliability and scalability of the application
Diagnosis #
To diagnose the root cause of this alert, follow these steps:
- Check the StatefulSet’s rollout history to identify the update that is not rolling out.
- Verify that the update is correctly configured and applied to the StatefulSet.
- Check the replica’s status and logs to identify any errors or issues that may be preventing the update from rolling out.
- Verify that the Kubernetes cluster has sufficient resources (e.g., CPU, memory) to support the update.
- Check for any network connectivity issues or firewalls that may be blocking the update.
Mitigation #
To mitigate this alert, follow these steps:
- Roll back the update to a previous version that was successfully deployed.
- Identify and fix any configuration issues or errors in the update.
- Verify that the replica’s status is updated correctly and the update is successfully applied.
- Increase the replicas to ensure that the application is still functional, if necessary.
- Monitor the StatefulSet’s rollout history and logs to ensure that the update is rolling out correctly.
Remember to refer to the provided runbook link for more detailed steps and best practices for resolving this alert.