From d52dc2c4ba83b66af04fde748c920f8bc22b4cd2 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 28 Apr 2025 16:59:40 +0200 Subject: [PATCH] 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 --- charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml | 1 + charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml | 1 + charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml | 1 + charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml index 3d3bc6308..df8e66480 100644 --- a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml @@ -58,6 +58,7 @@ spec: - "--nodeid=$(NODE_ID)" - "--type=cephfs" - "--nodeserver=true" + - "--automaxprocs=true" - "--pidlimit=-1" {{- if .Values.nodeplugin.forcecephkernelclient }} - "--forcecephkernelclient={{ .Values.nodeplugin.forcecephkernelclient }}" diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index 84d9dcbe7..048a8d74f 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -83,6 +83,7 @@ spec: - "--nodeid=$(NODE_ID)" - "--type=cephfs" - "--controllerserver=true" + - "--automaxprocs=true" - "--pidlimit=-1" - "--endpoint=$(CSI_ENDPOINT)" - "--v={{ .Values.logLevel }}" diff --git a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml index 8763104f9..4f25af3c2 100644 --- a/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-rbd/templates/nodeplugin-daemonset.yaml @@ -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)" diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index 9849ff1ce..21fe7d071 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -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)"