Enable Volumesnapshot/resize, disable leader election of single instance

This commit is contained in:
Stefan Reimer 2020-08-05 00:50:26 +01:00
parent 9dab68e0d3
commit a600591b28
3 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,8 @@ apiVersion: v2
name: kubezero-aws-ebs-csi-driver
description: KubeZero Umbrella Chart for aws-ebs-csi-driver
type: application
version: 0.1.1
version: 0.2.0
appVersion: 0.5.0
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
sources:

View File

@ -91,8 +91,10 @@ spec:
{{- if .Values.enableVolumeScheduling }}
- --feature-gates=Topology=true
{{- end}}
{{- if gt .Values.replicaCount 1 }}
- --enable-leader-election
- --leader-election-type=leases
{{- end}}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
@ -104,8 +106,10 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --v=5
{{- if gt .Values.replicaCount 1 }}
- --leader-election=true
- --leader-election-type=leases
{{- end}}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
@ -117,7 +121,9 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.snapshotterImage.repository .Values.sidecars.snapshotterImage.tag }}
args:
- --csi-address=$(ADDRESS)
{{- if gt .Values.replicaCount 1 }}
- --leader-election=true
{{- end}}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock

View File

@ -2,8 +2,8 @@ aws-ebs-csi-driver:
replicaCount: 1
enableVolumeScheduling: true
enableVolumeResizing: false
enableVolumeSnapshot: false
enableVolumeResizing: true
enableVolumeSnapshot: true
nodeSelector:
node-role.kubernetes.io/master: ""