From c70dcc6ca5f83f3e747a62f0bb8f82a5b3b91c96 Mon Sep 17 00:00:00 2001 From: xingnailu Date: Wed, 8 Apr 2026 09:37:25 +0800 Subject: [PATCH] feat: add request and limit for embedded (#27) --- curvine-csi/templates/daemonset.yaml | 5 +++++ curvine-csi/values.yaml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/curvine-csi/templates/daemonset.yaml b/curvine-csi/templates/daemonset.yaml index 73d0d9f..58c66ee 100644 --- a/curvine-csi/templates/daemonset.yaml +++ b/curvine-csi/templates/daemonset.yaml @@ -86,8 +86,13 @@ spec: - containerPort: {{ .Values.node.container.ports.healthz }} name: healthz protocol: TCP + - containerPort: {{ .Values.node.container.ports.metrics }} + name: metrics + protocol: TCP securityContext: {{- toYaml .Values.node.container.securityContext | nindent 12 }} + resources: + {{- toYaml .Values.node.container.resources | nindent 12 }} volumeMounts: - mountPath: /csi name: plugin-dir diff --git a/curvine-csi/values.yaml b/curvine-csi/values.yaml index bba04e5..169fd6c 100644 --- a/curvine-csi/values.yaml +++ b/curvine-csi/values.yaml @@ -127,6 +127,7 @@ node: # Ports ports: healthz: 9909 + metrics: 9002 # Security context securityContext: @@ -141,6 +142,15 @@ node: - -c - rm /csi/csi.sock + # Resource limits for embedded mode (when mountMode is "embedded") + resources: + requests: + cpu: "500m" + memory: "512Mi" + limits: + cpu: "2" + memory: "2Gi" + # Sidecar containers sidecars: nodeDriverRegistrar: