(dev-v2.6-archive) Change tolerations to match upstream and allow override

(partially cherry picked from commit 2b4eccc46a)
pull/1680/head
Arvind Iyengar 2021-09-15 12:39:00 -07:00
parent 86af1107cf
commit 36fe5d9992
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
2 changed files with 20 additions and 17 deletions

View File

@ -39,25 +39,17 @@ spec:
- "true" - "true"
{{- end }} {{- end }}
serviceAccountName: vsphere-csi-controller serviceAccountName: vsphere-csi-controller
{{- if .Values.csiController.tolerations }}
tolerations: tolerations:
# Rancher specific change: These tolerations are intentionally different from upstream to avoid lessening the scope to only NoSchedule with a specific key {{- with .Values.csiController.tolerations }}
# - key: node-role.kubernetes.io/master {{- toYaml . | nindent 8 }}
# operator: Exists {{- end }}
# effect: NoSchedule {{- else }}
- operator: "Exists" tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule effect: NoSchedule
- operator: "Exists" {{- end }}
effect: NoExecute
# uncomment below toleration if you need an aggressive pod eviction in case when
# node becomes not-ready or unreachable. Default is 300 seconds if not specified.
#- key: node.kubernetes.io/not-ready
# operator: Exists
# effect: NoExecute
# tolerationSeconds: 30
#- key: node.kubernetes.io/unreachable
# operator: Exists
# effect: NoExecute
# tolerationSeconds: 30
dnsPolicy: "Default" dnsPolicy: "Default"
containers: containers:
- name: csi-attacher - name: csi-attacher

View File

@ -42,6 +42,17 @@ csiController:
repository: rancher/mirrored-k8scsi-csi-provisioner repository: rancher/mirrored-k8scsi-csi-provisioner
tag: v2.1.0 tag: v2.1.0
nodeSelector: {} nodeSelector: {}
# Uncomment below toleration if you need an aggressive pod eviction in case when
# node becomes not-ready or unreachable. Default is 300 seconds if not specified.
# tolerations:
# - key: node.kubernetes.io/not-ready
# operator: Exists
# effect: NoExecute
# tolerationSeconds: 30
# - key: node.kubernetes.io/unreachable
# operator: Exists
# effect: NoExecute
# tolerationSeconds: 30
# Internal features # Internal features
csiMigration: csiMigration: