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

This commit is contained in:
pingrulkin
2022-09-20 02:47:22 +02:00
committed by GitHub
parent 1b5cc175b9
commit a2e23c1a71
2 changed files with 6 additions and 0 deletions

View File

@@ -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"