Merge pull request #146 from songjiaxun/add_runonmaster

fix: add runOnMaster switch for helm chart
This commit is contained in:
Kubernetes Prow Robot 2021-02-03 04:00:29 -08:00 committed by GitHub
commit 9f68086e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,7 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
| `serviceAccount.create` | whether create service account of csi-nfs-controller | true |
| `rbac.create` | whether create rbac of csi-nfs-controller | true |
| `controller.replicas` | the replicas of csi-nfs-controller | 2 |
| `controller.runOnMaster` | run controller on master node | false |
## troubleshooting
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error

View File

@ -18,6 +18,9 @@ spec:
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux
{{- if .Values.controller.runOnMaster}}
kubernetes.io/role: master
{{- end}}
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"

View File

@ -21,3 +21,4 @@ rbac:
create: true
controller:
replicas: 2
runOnMaster: false

View File

@ -16,7 +16,7 @@ spec:
spec:
serviceAccountName: csi-nfs-controller-sa
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/os: linux # add "kubernetes.io/role: master" to run controller on master node
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"