Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Kubernetes / Deployments, Scheduling & Batch Workloads

Check StatefulSet update policy when replicas remain on different revisions

Some StatefulSets intentionally retain older Pods because of partitioned or OnDelete updates. Inspect policy before forcing replacement.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Kubernetes · kubectl with supported client/server versions and delegated RBAC. Examples use namespace app unless noted. Check context, namespace, APIs and provider support first.

Start with this check

Check which system and tools you are using. Replace example objects, namespaces, images, file paths and hosts with approved values. Remove sensitive information before sharing output. Follow the application owner’s process for changes.

kubectl -n app get statefulset database -o jsonpath='{.spec.updateStrategy}{" "}{.status.currentRevision}{" "}{.status.updateRevision}'

What the results mean

The strategy and revision identifiers explain intended controller behavior. They do not prove the application can safely mix versions.

Fix the cause and check again

Compare the configured policy and Pod revisions with the staged release plan. Advance only the approved step and validate application replication and health.

Before changing production

Do not replace every replica at once or assume stateless Deployment rollback rules apply to persistent clustered data.

Share this article

Back to all articles