Merge pull request #146 from songjiaxun/add_runonmaster
fix: add runOnMaster switch for helm chart
This commit is contained in:
commit
9f68086e06
@ -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 |
|
| `serviceAccount.create` | whether create service account of csi-nfs-controller | true |
|
||||||
| `rbac.create` | whether create rbac 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.replicas` | the replicas of csi-nfs-controller | 2 |
|
||||||
|
| `controller.runOnMaster` | run controller on master node | false |
|
||||||
|
|
||||||
## troubleshooting
|
## troubleshooting
|
||||||
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error
|
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error
|
||||||
|
|||||||
Binary file not shown.
@ -18,6 +18,9 @@ spec:
|
|||||||
serviceAccountName: csi-nfs-controller-sa
|
serviceAccountName: csi-nfs-controller-sa
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
|
{{- if .Values.controller.runOnMaster}}
|
||||||
|
kubernetes.io/role: master
|
||||||
|
{{- end}}
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: "node-role.kubernetes.io/master"
|
- key: "node-role.kubernetes.io/master"
|
||||||
|
|||||||
@ -21,3 +21,4 @@ rbac:
|
|||||||
create: true
|
create: true
|
||||||
controller:
|
controller:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
|
runOnMaster: false
|
||||||
|
|||||||
@ -16,7 +16,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
serviceAccountName: csi-nfs-controller-sa
|
serviceAccountName: csi-nfs-controller-sa
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux # add "kubernetes.io/role: master" to run controller on master node
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: "node-role.kubernetes.io/master"
|
- key: "node-role.kubernetes.io/master"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user