mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-26 23:46:11 -03:30
vsphere-csi: add nodeAffinity to daemonset (#9293)
This commit is contained in:
@@ -24,6 +24,8 @@ vsphere_csi_aggressive_node_drain: False
|
|||||||
vsphere_csi_aggressive_node_unreachable_timeout: 300
|
vsphere_csi_aggressive_node_unreachable_timeout: 300
|
||||||
vsphere_csi_aggressive_node_not_ready_timeout: 300
|
vsphere_csi_aggressive_node_not_ready_timeout: 300
|
||||||
|
|
||||||
|
vsphere_csi_node_affinity: {}
|
||||||
|
|
||||||
# If this is true, debug information will be displayed but
|
# If this is true, debug information will be displayed but
|
||||||
# may contain some private data, so it is recommended to set it to false
|
# may contain some private data, so it is recommended to set it to false
|
||||||
# in the production environment.
|
# in the production environment.
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
|
{% if vsphere_csi_node_affinity %}
|
||||||
|
affinity:
|
||||||
|
{{ vsphere_csi_node_affinity | to_nice_yaml | indent(width=8) }}
|
||||||
|
{% endif %}
|
||||||
serviceAccountName: vsphere-csi-node
|
serviceAccountName: vsphere-csi-node
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: "ClusterFirstWithHostNet"
|
dnsPolicy: "ClusterFirstWithHostNet"
|
||||||
|
|||||||
Reference in New Issue
Block a user