Skip to content

Commit e351a3d

Browse files
committed
feat: support customization tolerations in chart
1 parent d1737d3 commit e351a3d

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

charts/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
5555
| `controller.replicas` | the replicas of csi-nfs-controller | 2 |
5656
| `controller.runOnMaster` | run controller on master node | false |
5757
| `controller.logLevel` | controller driver log level |`5` |
58+
| `controller.tolerations` | controller pod tolerations | |
5859
| `node.logLevel` | node driver log level |`5` |
5960
| `node.livenessProbe.healthPort ` | the health check port for liveness probe |`29653` |
61+
| `node.tolerations` | node pod tolerations | |
6062

6163
## troubleshooting
6264
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error
38 Bytes
Binary file not shown.

charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@ spec:
2828
kubernetes.io/role: master
2929
{{- end}}
3030
priorityClassName: system-cluster-critical
31+
{{- with .Values.controller.tolerations }}
3132
tolerations:
32-
- key: "node-role.kubernetes.io/master"
33-
operator: "Equal"
34-
value: "true"
35-
effect: "NoSchedule"
36-
- key: "node-role.kubernetes.io/controlplane"
37-
operator: "Equal"
38-
value: "true"
39-
effect: "NoSchedule"
33+
{{ toYaml . | indent 8 }}
34+
{{- end }}
4035
containers:
4136
- name: csi-provisioner
4237
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"

charts/latest/csi-driver-nfs/templates/csi-nfs-node.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
dnsPolicy: ClusterFirstWithHostNet
2424
nodeSelector:
2525
kubernetes.io/os: linux
26+
{{- with .Values.node.tolerations }}
27+
tolerations:
28+
{{ toYaml . | indent 8 }}
29+
{{- end }}
2630
containers:
2731
- name: liveness-probe
2832
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"

charts/latest/csi-driver-nfs/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,27 @@ serviceAccount:
1919
create: true
2020
rbac:
2121
create: true
22+
2223
controller:
2324
replicas: 2
2425
runOnMaster: false
2526
logLevel: 5
27+
tolerations:
28+
- key: "node-role.kubernetes.io/master"
29+
operator: "Equal"
30+
value: "true"
31+
effect: "NoSchedule"
32+
- key: "node-role.kubernetes.io/controlplane"
33+
operator: "Equal"
34+
value: "true"
35+
effect: "NoSchedule"
2636

2737
node:
2838
logLevel: 5
2939
livenessProbe:
3040
healthPort: 29653
41+
tolerations:
42+
- operator: "Exists"
3143

3244
feature:
3345
enableFSGroupPolicy: false

0 commit comments

Comments
 (0)