Skip to content

Commit cdd6e9a

Browse files
authored
Merge pull request #24525 from sftim/20201012_explain_pod_template_updates
Improve explanation about pod template updates
2 parents 4307125 + 225be5b commit cdd6e9a

File tree

1 file changed

+12
-8
lines changed
  • content/en/docs/concepts/workloads/pods

1 file changed

+12
-8
lines changed

content/en/docs/concepts/workloads/pods/_index.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,18 @@ spec:
172172
# The pod template ends here
173173
```
174174

175-
Modifying the pod template or switching to a new pod template has no effect on the
176-
Pods that already exist. Pods do not receive template updates directly. Instead,
177-
a new Pod is created to match the revised pod template.
178-
179-
For example, the deployment controller ensures that the running Pods match the current
180-
pod template for each Deployment object. If the template is updated, the Deployment has
181-
to remove the existing Pods and create new Pods based on the updated template. Each workload
182-
resource implements its own rules for handling changes to the Pod template.
175+
Modifying the pod template or switching to a new pod template has no direct effect
176+
on the Pods that already exist. If you change the pod template for a workload
177+
resource, that resource needs to create replacement Pods that use the updated template.
178+
179+
For example, the StatefulSet controller ensures that the running Pods match the current
180+
pod template for each StatefulSet object. If you edit the StatefulSet to change its pod
181+
template, the StatefulSet starts to create new Pods based on the updated template.
182+
Eventually, all of the old Pods are replaced with new Pods, and the update is complete.
183+
184+
Each workload resource implements its own rules for handling changes to the Pod template.
185+
If you want to read more about StatefulSet specifically, read
186+
[Update strategy](/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets) in the StatefulSet Basics tutorial.
183187

184188
On Nodes, the {{< glossary_tooltip term_id="kubelet" text="kubelet" >}} does not
185189
directly observe or manage any of the details around pod templates and updates; those

0 commit comments

Comments
 (0)