Skip to content

Commit be9d756

Browse files
authored
This should not be shell
the code is yaml
1 parent 7faf15a commit be9d756

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/en/docs/concepts/workloads/controllers/replicaset.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ For the template's [restart policy](/docs/concepts/workloads/Pods/pod-lifecycle/
245245
The `.spec.selector` field is a [label selector](/docs/concepts/overview/working-with-objects/labels/). As discussed
246246
[earlier](#how-a-replicaset-works) these are the labels used to identify potential Pods to acquire. In our
247247
`frontend.yaml` example, the selector was:
248-
```shell
248+
249+
```yaml
249250
matchLabels:
250-
tier: frontend
251+
tier: frontend
251252
```
252253
253254
In the ReplicaSet, `.spec.template.metadata.labels` must match `spec.selector`, or it will

0 commit comments

Comments
 (0)