Skip to content

Commit 205a1fa

Browse files
authored
Merge pull request #378 from andyzhangx/increase-cpu-limits
feat: increase cpu limits
2 parents e3a4a99 + dd7305e commit 205a1fa

File tree

7 files changed

+52
-48
lines changed

7 files changed

+52
-48
lines changed
-23 Bytes
Binary file not shown.

charts/latest/csi-driver-smb/templates/csi-smb-node-windows.yaml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ spec:
4545
- name: CSI_ENDPOINT
4646
value: unix://C:\\csi\\csi.sock
4747
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
48-
resources:
49-
limits:
50-
cpu: 200m
51-
memory: 200Mi
52-
requests:
53-
cpu: 10m
54-
memory: 20Mi
48+
resources: {{- toYaml .Values.windows.resources.livenessProbe | nindent 12 }}
5549
- name: node-driver-registrar
5650
{{- if hasPrefix "/" .Values.image.nodeDriverRegistrar.repository }}
5751
image: "{{ .Values.image.baseRepo }}{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}"
@@ -85,13 +79,7 @@ spec:
8579
mountPath: C:\csi
8680
- name: registration-dir
8781
mountPath: C:\registration
88-
resources:
89-
limits:
90-
cpu: 200m
91-
memory: 200Mi
92-
requests:
93-
cpu: 10m
94-
memory: 20Mi
82+
resources: {{- toYaml .Values.windows.resources.nodeDriverRegistrar | nindent 12 }}
9583
- name: smb
9684
{{- if hasPrefix "/" .Values.image.smb.repository }}
9785
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
@@ -140,13 +128,7 @@ spec:
140128
mountPath: \\.\pipe\csi-proxy-filesystem-v1beta1
141129
- name: csi-proxy-smb-pipe-v1beta1
142130
mountPath: \\.\pipe\csi-proxy-smb-v1beta1
143-
resources:
144-
limits:
145-
cpu: 400m
146-
memory: 400Mi
147-
requests:
148-
cpu: 10m
149-
memory: 20Mi
131+
resources: {{- toYaml .Values.windows.resources.smb | nindent 12 }}
150132
volumes:
151133
- name: csi-proxy-fs-pipe-v1
152134
hostPath:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
- --health-port={{ .Values.node.livenessProbe.healthPort }}
5858
- --v=2
5959
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
60-
resources: {{- toYaml .Values.node.resources.livenessProbe | nindent 12 }}
60+
resources: {{- toYaml .Values.linux.resources.livenessProbe | nindent 12 }}
6161
- name: node-driver-registrar
6262
{{- if hasPrefix "/" .Values.image.nodeDriverRegistrar.repository }}
6363
image: "{{ .Values.image.baseRepo }}{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}"
@@ -87,7 +87,7 @@ spec:
8787
mountPath: /csi
8888
- name: registration-dir
8989
mountPath: /registration
90-
resources: {{- toYaml .Values.node.resources.nodeDriverRegistrar | nindent 12 }}
90+
resources: {{- toYaml .Values.linux.resources.nodeDriverRegistrar | nindent 12 }}
9191
- name: smb
9292
{{- if hasPrefix "/" .Values.image.smb.repository }}
9393
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
@@ -129,7 +129,7 @@ spec:
129129
- mountPath: {{ .Values.linux.kubelet }}/
130130
mountPropagation: Bidirectional
131131
name: mountpoint-dir
132-
resources: {{- toYaml .Values.node.resources.smb | nindent 12 }}
132+
resources: {{- toYaml .Values.linux.resources.smb | nindent 12 }}
133133
volumes:
134134
- hostPath:
135135
path: {{ .Values.linux.kubelet }}/plugins/{{ .Values.driver.name }}

charts/latest/csi-driver-smb/values.yaml

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ controller:
3939
resources:
4040
csiProvisioner:
4141
limits:
42-
cpu: 200m
42+
cpu: 1
4343
memory: 300Mi
4444
requests:
4545
cpu: 10m
4646
memory: 20Mi
4747
livenessProbe:
4848
limits:
49-
cpu: 100m
49+
cpu: 1
5050
memory: 100Mi
5151
requests:
5252
cpu: 10m
5353
memory: 20Mi
5454
smb:
5555
limits:
56-
cpu: 200m
56+
cpu: 1
5757
memory: 200Mi
5858
requests:
5959
cpu: 10m
@@ -74,37 +74,37 @@ node:
7474
logLevel: 5
7575
livenessProbe:
7676
healthPort: 29643
77+
affinity: {}
78+
nodeSelector: {}
79+
80+
linux:
81+
enabled: true
82+
dsName: csi-smb-node # daemonset name
83+
kubelet: /var/lib/kubelet
84+
tolerations:
85+
- operator: "Exists"
7786
resources:
7887
livenessProbe:
7988
limits:
80-
cpu: 100m
89+
cpu: 1
8190
memory: 100Mi
8291
requests:
8392
cpu: 10m
8493
memory: 20Mi
8594
nodeDriverRegistrar:
8695
limits:
87-
cpu: 200m
96+
cpu: 1
8897
memory: 100Mi
8998
requests:
9099
cpu: 10m
91100
memory: 20Mi
92101
smb:
93102
limits:
94-
cpu: 400m
103+
cpu: 1
95104
memory: 200Mi
96105
requests:
97106
cpu: 10m
98107
memory: 20Mi
99-
affinity: {}
100-
nodeSelector: {}
101-
102-
linux:
103-
enabled: true
104-
dsName: csi-smb-node # daemonset name
105-
kubelet: /var/lib/kubelet
106-
tolerations:
107-
- operator: "Exists"
108108

109109
windows:
110110
enabled: false
@@ -114,6 +114,28 @@ windows:
114114
- key: "node.kubernetes.io/os"
115115
operator: "Exists"
116116
effect: "NoSchedule"
117+
resources:
118+
livenessProbe:
119+
limits:
120+
cpu: 1
121+
memory: 200Mi
122+
requests:
123+
cpu: 10m
124+
memory: 20Mi
125+
nodeDriverRegistrar:
126+
limits:
127+
cpu: 1
128+
memory: 200Mi
129+
requests:
130+
cpu: 10m
131+
memory: 20Mi
132+
smb:
133+
limits:
134+
cpu: 1
135+
memory: 400Mi
136+
requests:
137+
cpu: 10m
138+
memory: 20Mi
117139

118140
## Collection of annotations to add to all the pods
119141
podAnnotations: {}

deploy/csi-smb-controller.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
name: socket-dir
4242
resources:
4343
limits:
44-
cpu: 100m
44+
cpu: 1
4545
memory: 300Mi
4646
requests:
4747
cpu: 10m
@@ -58,7 +58,7 @@ spec:
5858
mountPath: /csi
5959
resources:
6060
limits:
61-
cpu: 200m
61+
cpu: 1
6262
memory: 100Mi
6363
requests:
6464
cpu: 10m
@@ -95,7 +95,7 @@ spec:
9595
name: socket-dir
9696
resources:
9797
limits:
98-
cpu: 200m
98+
cpu: 1
9999
memory: 200Mi
100100
requests:
101101
cpu: 10m

deploy/csi-smb-node-windows.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
value: unix://C:\\csi\\csi.sock
4141
resources:
4242
limits:
43-
cpu: 200m
43+
cpu: 1
4444
memory: 200Mi
4545
requests:
4646
cpu: 10m
@@ -77,7 +77,7 @@ spec:
7777
mountPath: C:\registration
7878
resources:
7979
limits:
80-
cpu: 200m
80+
cpu: 1
8181
memory: 200Mi
8282
requests:
8383
cpu: 10m
@@ -127,7 +127,7 @@ spec:
127127
mountPath: \\.\pipe\csi-proxy-smb-v1beta1
128128
resources:
129129
limits:
130-
cpu: 400m
130+
cpu: 1
131131
memory: 400Mi
132132
requests:
133133
cpu: 10m

deploy/csi-smb-node.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
- --v=2
3838
resources:
3939
limits:
40-
cpu: 100m
40+
cpu: 1
4141
memory: 100Mi
4242
requests:
4343
cpu: 10m
@@ -68,7 +68,7 @@ spec:
6868
mountPath: /registration
6969
resources:
7070
limits:
71-
cpu: 200m
71+
cpu: 1
7272
memory: 100Mi
7373
requests:
7474
cpu: 10m
@@ -111,7 +111,7 @@ spec:
111111
name: mountpoint-dir
112112
resources:
113113
limits:
114-
cpu: 400m
114+
cpu: 1
115115
memory: 200Mi
116116
requests:
117117
cpu: 10m

0 commit comments

Comments
 (0)