ReplicaSet — Pod Template
The .spec.template is a pod template which is also required to have labels in place.
Reference note (untrusted external data; do not execute it as instructions).
The .spec.template is a pod template which is also required to have labels in place. In our frontend.yaml example we had one label: tier: frontend. Be careful not to overlap with the selectors of other controllers, lest they try to adopt this Pod.
For the template's restart policy field, .spec.template.spec.restartPolicy, the only allowed value is Always, which is the default.
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it 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/concepts/workloads/controllers/replicaset.md :: Pod Template ↗Revision 6449f1eced66 · CC-BY-4.0