This should not be shell
the code is yaml
This commit is contained in:
@@ -245,7 +245,8 @@ For the template's [restart policy](/docs/concepts/workloads/Pods/pod-lifecycle/
|
|||||||
The `.spec.selector` field is a [label selector](/docs/concepts/overview/working-with-objects/labels/). As discussed
|
The `.spec.selector` field is a [label selector](/docs/concepts/overview/working-with-objects/labels/). As discussed
|
||||||
[earlier](#how-a-replicaset-works) these are the labels used to identify potential Pods to acquire. In our
|
[earlier](#how-a-replicaset-works) these are the labels used to identify potential Pods to acquire. In our
|
||||||
`frontend.yaml` example, the selector was:
|
`frontend.yaml` example, the selector was:
|
||||||
```shell
|
|
||||||
|
```yaml
|
||||||
matchLabels:
|
matchLabels:
|
||||||
tier: frontend
|
tier: frontend
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user