You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are still five PersistentVolumeClaims and five PersistentVolumes.
544
-
When exploring a Pod's [stable storage](#writing-to-stable-storage), we saw that the PersistentVolumes mounted to the Pods of a StatefulSet are not deleted when the StatefulSet's Pods are deleted. This is still true when Pod deletion is caused by scaling the StatefulSet down.
565
+
When exploring a Pod's [stable storage](#writing-to-stable-storage), you saw that
566
+
the PersistentVolumes mounted to the Pods of a StatefulSet are not deleted when the
567
+
StatefulSet's Pods are deleted. This is still true when Pod deletion is caused by
568
+
scaling the StatefulSet down.
545
569
546
570
## Updating StatefulSets
547
571
@@ -1145,16 +1169,35 @@ For some distributed systems, the StatefulSet ordering guarantees are
1145
1169
unnecessary and/or undesirable. These systems require only uniqueness and
1146
1170
identity.
1147
1171
1148
-
You can specify a Pod management policy to avoid this strict ordering;
1149
-
either [`OrderedReady`](/docs/concepts/workloads/controllers/statefulset/#orderedready-pod-management) (the default)
1150
-
or [`Parallel`](/docs/concepts/workloads/controllers/statefulset/#parallel-pod-management).
1172
+
You can specify a [Pod management policy](/docs/concepts/workloads/controllers/statefulset/#pod-management-policies)
1173
+
to avoid this strict ordering; either `OrderedReady` (the default), or `Parallel`.
1174
+
1175
+
### OrderedReady Pod management
1176
+
1177
+
`OrderedReady` pod management is the default for StatefulSets. It tells the
1178
+
StatefulSet controller to respect the ordering guarantees demonstrated
1179
+
above.
1180
+
1181
+
Use this when your application requires or expects that changes, such as rolling out a new
1182
+
version of your application, happen in the strict order of the ordinal (pod number) that the StatefulSet provides.
1183
+
In other words, if you have Pods `app-0`, `app-1` and `app-2`, Kubernetes will update `app-0` first and check it.
1184
+
Once the checks are good, Kubernetes updates `app-1` and finally `app-2`.
1185
+
1186
+
If you added two more Pods, Kubernetes would set up `app-3` and wait for that to become healthy before deploying
1187
+
`app-4`.
1188
+
1189
+
Because this is the default setting, you've already practised using it.
1151
1190
1152
1191
### Parallel Pod management
1153
1192
1154
-
`Parallel` pod management tells the StatefulSet controller to launch or
1155
-
terminate all Pods in parallel, and not to wait for Pods to become Running
1156
-
and Ready or completely terminated prior to launching or terminating another
1157
-
Pod. This option only affects the behavior for scaling operations. Updates are not affected.
1193
+
The alternative, `Parallel` pod management, tells the StatefulSet controller to launch or
1194
+
terminate all Pods in parallel, and not to wait for Pods to become `Running`
1195
+
and `Ready` or completely terminated prior to launching or terminating another
1196
+
Pod.
1197
+
1198
+
The `Parallel` pod management option only affects the behavior for scaling operations. Updates are not affected;
1199
+
Kubernetes still rolls out changes in order. For this tutorial, the application is very simple: a webserver that
1200
+
tells you its hostname (because this is a StatefulSet, the hostname for each Pod is different and predictable).
0 commit comments