diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index 90db751206..3185928cc8 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -209,6 +209,11 @@ spec: {{- end }} {{- end }} - --default-fstype={{ .Values.controller.defaultFsType }} + {{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-worker-threads)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 + {{- end }} {{- range .Values.sidecars.provisioner.additionalArgs }} - {{ . }} {{- end }} @@ -254,6 +259,11 @@ spec: - --leader-election-retry-period={{ .Values.sidecars.attacher.leaderElection.retryPeriod }} {{- end }} {{- end }} + {{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-worker-threads)" (join " " .Values.sidecars.attacher.additionalArgs)) }} + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 + {{- end }} {{- range .Values.sidecars.attacher.additionalArgs }} - {{ . }} {{- end }} @@ -291,6 +301,11 @@ spec: {{- if .Values.controller.extraCreateMetadata }} - --extra-create-metadata {{- end}} + {{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-worker-threads)" (join " " .Values.sidecars.snapshotter.additionalArgs)) }} + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 + {{- end }} {{- range .Values.sidecars.snapshotter.additionalArgs }} - {{ . }} {{- end }} @@ -393,6 +408,11 @@ spec: - --leader-election-retry-period={{ .retryPeriod }} {{- end }} {{- end }} + {{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-workers)" (join " " .Values.sidecars.resizer.additionalArgs)) }} + - --kube-api-qps=20 + - --kube-api-burst=100 + - --workers=100 + {{- end }} {{- range .Values.sidecars.resizer.additionalArgs }} - {{ . }} {{- end }} diff --git a/deploy/kubernetes/base/controller.yaml b/deploy/kubernetes/base/controller.yaml index 795a04e0a7..5a8bc2fd26 100644 --- a/deploy/kubernetes/base/controller.yaml +++ b/deploy/kubernetes/base/controller.yaml @@ -136,6 +136,9 @@ spec: - --extra-create-metadata - --leader-election=true - --default-fstype=ext4 + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock @@ -158,6 +161,9 @@ spec: - --csi-address=$(ADDRESS) - --v=2 - --leader-election=true + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock @@ -180,6 +186,9 @@ spec: - --csi-address=$(ADDRESS) - --leader-election=true - --extra-create-metadata + - --kube-api-qps=20 + - --kube-api-burst=100 + - --worker-threads=100 env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock @@ -203,6 +212,9 @@ spec: - --v=2 - --handle-volume-inuse-error=false - --leader-election=true + - --kube-api-qps=20 + - --kube-api-burst=100 + - --workers=100 env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock