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

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

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

Confirm the environment and replace sample objects, namespaces, images, paths and hosts with approved targets. Share only relevant, sanitized output. Follow the workload owner’s process for changes.

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

Read the result

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

Resolve and verify

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