diff --git a/charts/latest/csi-driver-nfs-v0.0.0.tgz b/charts/latest/csi-driver-nfs-v0.0.0.tgz index 0d78d5df9..3d0aa00b6 100644 Binary files a/charts/latest/csi-driver-nfs-v0.0.0.tgz and b/charts/latest/csi-driver-nfs-v0.0.0.tgz differ diff --git a/charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml b/charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml index c433b5423..1f51c29f2 100644 --- a/charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml +++ b/charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml @@ -78,6 +78,7 @@ spec: - name: ADDRESS value: /csi/csi.sock imagePullPolicy: {{ .Values.image.csiSnapshotter.pullPolicy }} + resources: {{- toYaml .Values.controller.resources.csiSnapshotter | nindent 12 }} volumeMounts: - name: socket-dir mountPath: /csi diff --git a/charts/latest/csi-driver-nfs/templates/csi-snapshot-controller.yaml b/charts/latest/csi-driver-nfs/templates/csi-snapshot-controller.yaml index 07d0154c4..351f2bbc3 100644 --- a/charts/latest/csi-driver-nfs/templates/csi-snapshot-controller.yaml +++ b/charts/latest/csi-driver-nfs/templates/csi-snapshot-controller.yaml @@ -57,11 +57,6 @@ spec: - "--v=2" - "--leader-election=true" - "--leader-election-namespace={{ .Release.Namespace }}" - resources: - limits: - memory: 100Mi - requests: - cpu: 10m - memory: 20Mi + resources: {{- toYaml .Values.externalSnapshotter.resources | nindent 12 }} imagePullPolicy: {{ .Values.image.externalSnapshotter.pullPolicy }} {{- end -}} diff --git a/charts/latest/csi-driver-nfs/values.yaml b/charts/latest/csi-driver-nfs/values.yaml index 1fe58710a..4328b41e3 100755 --- a/charts/latest/csi-driver-nfs/values.yaml +++ b/charts/latest/csi-driver-nfs/values.yaml @@ -74,6 +74,12 @@ controller: requests: cpu: 10m memory: 20Mi + csiSnapshotter: + limits: + memory: 200Mi + requests: + cpu: 10m + memory: 20Mi livenessProbe: limits: memory: 100Mi @@ -123,7 +129,12 @@ externalSnapshotter: name: snapshot-controller controller: replicas: 1 - + resources: + limits: + memory: 300Mi + requests: + cpu: 10m + memory: 20Mi ## Reference to one or more secrets to be used when pulling images ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## diff --git a/deploy/csi-nfs-controller.yaml b/deploy/csi-nfs-controller.yaml index dbb0b4b78..9309e3126 100644 --- a/deploy/csi-nfs-controller.yaml +++ b/deploy/csi-nfs-controller.yaml @@ -68,6 +68,12 @@ spec: volumeMounts: - name: socket-dir mountPath: /csi + resources: + limits: + memory: 200Mi + requests: + cpu: 10m + memory: 20Mi - name: liveness-probe image: registry.k8s.io/sig-storage/livenessprobe:v2.10.0 args: diff --git a/deploy/csi-snapshot-controller.yaml b/deploy/csi-snapshot-controller.yaml index 8e7c21dfc..2e9badbb8 100644 --- a/deploy/csi-snapshot-controller.yaml +++ b/deploy/csi-snapshot-controller.yaml @@ -59,7 +59,7 @@ spec: - "--leader-election-namespace=kube-system" resources: limits: - memory: 100Mi + memory: 300Mi requests: cpu: 10m memory: 20Mi