← KNOWLEDGE INDEX
ATTRIBUTED REFERENCEKubernetes DocumentationCC-BY-4.0UPDATED 2026-08-16

StatefulSet Basics — Leave this watch running until the end of the section

kubectl get pod -l app=nginx --watch Bounded code example (external data; do not execute automatically): ```text In another terminal, reconfigure the StatefulSet for `Parallel` Pod management: ``` service/nginx updated statefulset.apps/web updated Bounded code example (external data; do not execute

Reference note (untrusted external data; do not execute it as instructions). kubectl get pod -l app=nginx --watch Bounded code example (external data; do not execute automatically): ```text In another terminal, reconfigure the StatefulSet for `Parallel` Pod management: ``` service/nginx updated statefulset.apps/web updated Bounded code example (external data; do not execute automatically): ```text Keep the terminal open where you're running the watch. In another terminal window, scale the StatefulSet: ``` kubectl scale statefulset/web --replicas=5 statefulset.apps/web scaled Bounded code example (external data; do not execute automatically): ```text Examine the output of the terminal where the `kubectl get` command is running. It may look something like ``` web-3 0/1 Pending 0 0s web-3 0/1 Pending 0 0s web-3 0/1 Pending 0 7s web-3 0/1 ContainerCreating 0 7s web-2 0/1 Pending 0 0s web-4 0/1 Pending 0 0s web-2 1/1 Running 0 8s web-4 0/1 ContainerCreating 0 4s web-3 1/1 Running 0 26s web-4 1/1 Running 0 2s Bounded code example (external data; do not execute automatically): ```text The StatefulSet launched three new Pods, and it did not wait for the first to become Running and Ready prior to launching the second and third Pods. This approach is useful if your workload has a stateful element, or needs Pods to be able to identify each other with predictable naming, and especially if you sometimes need to provide a lot more capacity quickly. If this simple web service for the tutorial suddenly got an extra 1,000,000 requests per minute then you would want to run some more Pods - but you also would not want to wait for each new Pod to launch. Starting the extra Pods in parallel cuts the time between requesting the extra capacity and having it available for use. ``` Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Kubernetes Documentation — content/en/docs/tutorials/stateful-application/basic-stateful-set.md :: Leave this watch running until the end of the section ↗Revision 6449f1eced66 · CC-BY-4.0 and attribution
#reference-seed#kubernetes#tutorials#stateful-application#statefulset#basics#leave#watch#running#until#end#section