Skip to content

Commit 078703a

Browse files
authored
Merge pull request #97 from xizhamsft/xizha-resourcelimit
set cpu/memory resource limits for blobfuse csi driver
2 parents f8b12a8 + 00b3fae commit 078703a

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

charts/latest/blobfuse-csi-driver/templates/csi-blobfuse-controller.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ spec:
3434
volumeMounts:
3535
- mountPath: /csi
3636
name: socket-dir
37+
resources:
38+
limits:
39+
cpu: 200m
40+
memory: 200Mi
41+
requests:
42+
cpu: 10m
43+
memory: 20Mi
3744
- name: csi-attacher
3845
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
3946
args:
@@ -49,6 +56,13 @@ spec:
4956
volumeMounts:
5057
- mountPath: /csi
5158
name: socket-dir
59+
resources:
60+
limits:
61+
cpu: 200m
62+
memory: 200Mi
63+
requests:
64+
cpu: 10m
65+
memory: 20Mi
5266
- name: cluster-driver-registrar
5367
image: "{{ .Values.image.clusterDriverRegistrar.repository }}:{{ .Values.image.clusterDriverRegistrar.tag }}"
5468
args:
@@ -62,6 +76,13 @@ spec:
6276
volumeMounts:
6377
- name: socket-dir
6478
mountPath: /csi
79+
resources:
80+
limits:
81+
cpu: 200m
82+
memory: 200Mi
83+
requests:
84+
cpu: 10m
85+
memory: 20Mi
6586
- name: liveness-probe
6687
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
6788
args:
@@ -72,6 +93,13 @@ spec:
7293
volumeMounts:
7394
- name: socket-dir
7495
mountPath: /csi
96+
resources:
97+
limits:
98+
cpu: 200m
99+
memory: 200Mi
100+
requests:
101+
cpu: 10m
102+
memory: 20Mi
75103
- name: blobfuse
76104
image: "{{ .Values.image.blobfuse.repository }}:{{ .Values.image.blobfuse.tag }}"
77105
args:
@@ -104,6 +132,13 @@ spec:
104132
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
105133
readOnly: true
106134
name: msi
135+
resources:
136+
limits:
137+
cpu: 200m
138+
memory: 200Mi
139+
requests:
140+
cpu: 10m
141+
memory: 20Mi
107142
volumes:
108143
- name: socket-dir
109144
emptyDir: {}

charts/latest/blobfuse-csi-driver/templates/csi-blobfuse-node.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ spec:
2828
- --csi-address=/csi/csi.sock
2929
- --connection-timeout=3s
3030
- --health-port=9802
31+
resources:
32+
limits:
33+
cpu: 200m
34+
memory: 200Mi
35+
requests:
36+
cpu: 10m
37+
memory: 20Mi
3138
- name: node-driver-registrar
3239
image: "{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}"
3340
args:
@@ -48,6 +55,13 @@ spec:
4855
mountPath: /csi
4956
- name: registration-dir
5057
mountPath: /registration
58+
resources:
59+
limits:
60+
cpu: 200m
61+
memory: 200Mi
62+
requests:
63+
cpu: 10m
64+
memory: 20Mi
5165
- name: blobfuse
5266
image: "{{ .Values.image.blobfuse.repository }}:{{ .Values.image.blobfuse.tag }}"
5367
args:
@@ -92,6 +106,13 @@ spec:
92106
name: msi
93107
- mountPath: /mnt
94108
name: blobfuse-cache
109+
resources:
110+
limits:
111+
cpu: 200m
112+
memory: 200Mi
113+
requests:
114+
cpu: 10m
115+
memory: 20Mi
95116
volumes:
96117
- hostPath:
97118
path: /var/lib/kubelet/plugins/blobfuse.csi.azure.com

deploy/csi-blobfuse-controller.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ spec:
3434
volumeMounts:
3535
- mountPath: /csi
3636
name: socket-dir
37+
resources:
38+
limits:
39+
cpu: 200m
40+
memory: 200Mi
41+
requests:
42+
cpu: 10m
43+
memory: 20Mi
3744
- name: csi-attacher
3845
image: mcr.microsoft.com/oss/kubernetes-csi/csi-attacher:v1.2.0
3946
args:
@@ -49,6 +56,13 @@ spec:
4956
volumeMounts:
5057
- mountPath: /csi
5158
name: socket-dir
59+
resources:
60+
limits:
61+
cpu: 200m
62+
memory: 200Mi
63+
requests:
64+
cpu: 10m
65+
memory: 20Mi
5266
- name: cluster-driver-registrar
5367
image: mcr.microsoft.com/oss/kubernetes-csi/csi-cluster-driver-registrar:v1.0.1
5468
args:
@@ -61,6 +75,13 @@ spec:
6175
volumeMounts:
6276
- name: socket-dir
6377
mountPath: /csi
78+
resources:
79+
limits:
80+
cpu: 200m
81+
memory: 200Mi
82+
requests:
83+
cpu: 10m
84+
memory: 20Mi
6485
- name: liveness-probe
6586
image: mcr.microsoft.com/oss/kubernetes-csi/livenessprobe:v1.1.0
6687
args:
@@ -70,6 +91,13 @@ spec:
7091
volumeMounts:
7192
- name: socket-dir
7293
mountPath: /csi
94+
resources:
95+
limits:
96+
cpu: 200m
97+
memory: 200Mi
98+
requests:
99+
cpu: 10m
100+
memory: 20Mi
73101
- name: blobfuse
74102
image: mcr.microsoft.com/k8s/csi/blobfuse-csi:latest
75103
args:
@@ -102,6 +130,13 @@ spec:
102130
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
103131
readOnly: true
104132
name: msi
133+
resources:
134+
limits:
135+
cpu: 200m
136+
memory: 200Mi
137+
requests:
138+
cpu: 10m
139+
memory: 20Mi
105140
volumes:
106141
- name: socket-dir
107142
emptyDir: {}

deploy/csi-blobfuse-node.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ spec:
2727
- --csi-address=/csi/csi.sock
2828
- --connection-timeout=3s
2929
- --health-port=9802
30+
resources:
31+
limits:
32+
cpu: 200m
33+
memory: 200Mi
34+
requests:
35+
cpu: 10m
36+
memory: 20Mi
3037
- name: node-driver-registrar
3138
image: mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar:v1.1.0
3239
args:
@@ -47,6 +54,13 @@ spec:
4754
mountPath: /csi
4855
- name: registration-dir
4956
mountPath: /registration
57+
resources:
58+
limits:
59+
cpu: 200m
60+
memory: 200Mi
61+
requests:
62+
cpu: 10m
63+
memory: 20Mi
5064
- name: blobfuse
5165
image: mcr.microsoft.com/k8s/csi/blobfuse-csi:latest
5266
args:
@@ -91,6 +105,13 @@ spec:
91105
name: msi
92106
- mountPath: /mnt
93107
name: blobfuse-cache
108+
resources:
109+
limits:
110+
cpu: 200m
111+
memory: 200Mi
112+
requests:
113+
cpu: 10m
114+
memory: 20Mi
94115
volumes:
95116
- hostPath:
96117
path: /var/lib/kubelet/plugins/blobfuse.csi.azure.com

0 commit comments

Comments
 (0)