We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 869be9b + be9d756 commit 784433dCopy full SHA for 784433d
content/en/docs/concepts/workloads/controllers/replicaset.md
@@ -245,9 +245,10 @@ For the template's [restart policy](/docs/concepts/workloads/Pods/pod-lifecycle/
245
The `.spec.selector` field is a [label selector](/docs/concepts/overview/working-with-objects/labels/). As discussed
246
[earlier](#how-a-replicaset-works) these are the labels used to identify potential Pods to acquire. In our
247
`frontend.yaml` example, the selector was:
248
-```shell
+
249
+```yaml
250
matchLabels:
- tier: frontend
251
+ tier: frontend
252
```
253
254
In the ReplicaSet, `.spec.template.metadata.labels` must match `spec.selector`, or it will
0 commit comments