Skip to content
Snippets Groups Projects
Unverified Commit a2e23c1a authored by pingrulkin's avatar pingrulkin Committed by GitHub
Browse files

vsphere-csi: add nodeAffinity to daemonset (#9293)

parent 1b5cc175
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ vsphere_csi_aggressive_node_drain: False
vsphere_csi_aggressive_node_unreachable_timeout: 300
vsphere_csi_aggressive_node_not_ready_timeout: 300
vsphere_csi_node_affinity: {}
# If this is true, debug information will be displayed but
# may contain some private data, so it is recommended to set it to false
# in the production environment.
......
......@@ -19,6 +19,10 @@ spec:
spec:
nodeSelector:
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
hostNetwork: true
dnsPolicy: "ClusterFirstWithHostNet"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment