Merge pull request #883 from lukaszo/da
Update DaemonSet docs about node affinity
This commit is contained in:
@@ -72,8 +72,10 @@ a node for testing.
|
|||||||
If you specify a `.spec.template.spec.nodeSelector`, then the DaemonSet controller will
|
If you specify a `.spec.template.spec.nodeSelector`, then the DaemonSet controller will
|
||||||
create pods on nodes which match that [node
|
create pods on nodes which match that [node
|
||||||
selector](https://github.com/kubernetes/kubernetes.github.io/tree/{{page.docsbranch}}/docs/user-guide/node-selection).
|
selector](https://github.com/kubernetes/kubernetes.github.io/tree/{{page.docsbranch}}/docs/user-guide/node-selection).
|
||||||
|
If you specify a `scheduler.alpha.kubernetes.io/affinity` annotation in `.spec.template.metadata.annotations`,
|
||||||
|
then DaemonSet controller will create pods on nodes which match that [node affinity](../../user-guide/node-selection/#alpha-feature-in-kubernetes-v12-node-affinity).
|
||||||
|
|
||||||
If you do not specify a `.spec.template.spec.nodeSelector`, then the DaemonSet controller will
|
If you do not specify a `.spec.template.spec.nodeSelector` nor `node affinity`, then the DaemonSet controller will
|
||||||
create pods on all nodes.
|
create pods on all nodes.
|
||||||
|
|
||||||
## How Daemon Pods are Scheduled
|
## How Daemon Pods are Scheduled
|
||||||
|
|||||||
Reference in New Issue
Block a user