deploy: include -automaxprocs to apply configured resource quota

When the Ceph-CSI provisioner/plugin is configured with CPU resource
quota, the GOMAXPROCS environment variable should get set as well.
Without the `-automaxprocs` commandline argument, it is possible that
there are way too many threads started by the Go runtime.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2025-04-28 16:59:40 +02:00 committed by mergify[bot]
parent 4db8b6222c
commit d52dc2c4ba
4 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,7 @@ spec:
- "--nodeid=$(NODE_ID)"
- "--type=cephfs"
- "--nodeserver=true"
- "--automaxprocs=true"
- "--pidlimit=-1"
{{- if .Values.nodeplugin.forcecephkernelclient }}
- "--forcecephkernelclient={{ .Values.nodeplugin.forcecephkernelclient }}"

View File

@ -83,6 +83,7 @@ spec:
- "--nodeid=$(NODE_ID)"
- "--type=cephfs"
- "--controllerserver=true"
- "--automaxprocs=true"
- "--pidlimit=-1"
- "--endpoint=$(CSI_ENDPOINT)"
- "--v={{ .Values.logLevel }}"

View File

@ -60,6 +60,7 @@ spec:
- "--stagingpath={{ .Values.kubeletDir }}/plugins/kubernetes.io/csi/"
- "--type=rbd"
- "--nodeserver=true"
- "--automaxprocs=true"
- "--pidlimit=-1"
- "--endpoint=$(CSI_ENDPOINT)"
- "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)"

View File

@ -83,6 +83,7 @@ spec:
- "--nodeid=$(NODE_ID)"
- "--type=rbd"
- "--controllerserver=true"
- "--automaxprocs=true"
- "--pidlimit=-1"
- "--endpoint=$(CSI_ENDPOINT)"
- "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)"