File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
content/en/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ A Pod Template in a DaemonSet must have a [`RestartPolicy`](/docs/concepts/workl
76
76
The ` .spec.selector ` field is a pod selector. It works the same as the ` .spec.selector ` of
77
77
a [ Job] ( /docs/concepts/workloads/controllers/job/ ) .
78
78
79
- As of Kubernetes 1.8, you must specify a pod selector that matches the labels of the
80
- ` .spec.template ` . The pod selector will no longer be defaulted when left empty. Selector
81
- defaulting was not compatible with ` kubectl apply ` . Also, once a DaemonSet is created,
79
+ You must specify a pod selector that matches the labels of the
80
+ ` .spec.template ` .
81
+ Also, once a DaemonSet is created,
82
82
its ` .spec.selector ` can not be mutated. Mutating the pod selector can lead to the
83
83
unintentional orphaning of Pods, and it was found to be confusing to users.
84
84
@@ -91,8 +91,8 @@ The `.spec.selector` is an object consisting of two fields:
91
91
92
92
When the two are specified the result is ANDed.
93
93
94
- If the ` .spec.selector ` is specified, it must match the ` .spec.template.metadata.labels ` .
95
- Config with these not matching will be rejected by the API.
94
+ The ` .spec.selector ` must match the ` .spec.template.metadata.labels ` .
95
+ Config with these two not matching will be rejected by the API.
96
96
97
97
### Running Pods on select Nodes
98
98
You can’t perform that action at this time.
0 commit comments