Skip to content

Commit bcc1afa

Browse files
authored
Merge pull request kubernetes-sigs#1616 from huww98/bmcpfs-manifest
deploy: align bmcpfs sidecar with others
2 parents d40c1d0 + 2865192 commit bcc1afa

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

deploy/charts/alibaba-cloud-csi-driver/templates/controller.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ spec:
255255
- --kube-api-qps=100
256256
- --kube-api-burst=200
257257
- --v=5
258+
- --logging-format={{ .Values.logging.format }}
258259
securityContext:
259260
allowPrivilegeEscalation: false
260261
readOnlyRootFilesystem: true
@@ -305,6 +306,7 @@ spec:
305306
- --kube-api-qps=100
306307
- --kube-api-burst=200
307308
- --v=5
309+
- --logging-format={{ .Values.logging.format }}
308310
image: {{ include "imageSpec" (list .Values "externalProvisioner") }}
309311
resources:
310312
limits:
@@ -364,7 +366,7 @@ spec:
364366
image: {{ include "imageSpec" (list .Values "externalProvisioner") }}
365367
args:
366368
- --csi-address=/csi/csi.sock
367-
- --http-endpoint=:8100
369+
- --http-endpoint=:8120
368370
- --volume-name-prefix=bmcpfs
369371
- --default-fstype=bmcpfs
370372
- --timeout=150s
@@ -373,13 +375,25 @@ spec:
373375
- --kube-api-qps=100
374376
- --kube-api-burst=200
375377
- --v=5
378+
- --logging-format={{ .Values.logging.format }}
376379
resources:
377380
requests:
378381
cpu: 10m
379382
memory: 16Mi
380383
limits:
381384
cpu: 500m
382385
memory: 1024Mi
386+
ports:
387+
- containerPort: 8120
388+
name: bmcpfs-p-http
389+
protocol: TCP
390+
livenessProbe:
391+
httpGet:
392+
path: /healthz/leader-election
393+
port: bmcpfs-p-http
394+
securityContext:
395+
allowPrivilegeEscalation: false
396+
readOnlyRootFilesystem: true
383397
volumeMounts:
384398
- name: bmcpfs-provisioner-dir
385399
mountPath: /csi
@@ -396,11 +410,23 @@ spec:
396410
- --v=5
397411
- --logging-format={{ .Values.logging.format }}
398412
- --csi-address=/csi/csi.sock
413+
- --http-endpoint=:8121
399414
- --leader-election=true
400415
- --kube-api-qps=50
401416
- --kube-api-burst=100
402417
- --worker-threads=32
403418
- --timeout=30s
419+
ports:
420+
- containerPort: 8121
421+
name: bmcpfs-a-http
422+
protocol: TCP
423+
livenessProbe:
424+
httpGet:
425+
path: /healthz/leader-election
426+
port: bmcpfs-a-http
427+
securityContext:
428+
allowPrivilegeEscalation: false
429+
readOnlyRootFilesystem: true
404430
volumeMounts:
405431
- name: bmcpfs-provisioner-dir
406432
mountPath: /csi
@@ -421,6 +447,7 @@ spec:
421447
- --kube-api-qps=100
422448
- --kube-api-burst=200
423449
- --v=5
450+
- --logging-format={{ .Values.logging.format }}
424451
resources:
425452
requests:
426453
cpu: 10m

deploy/charts/alibaba-cloud-csi-driver/templates/monitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
{{- if and .Values.csi.local.enabled .Values.csi.local.controller.enabled }}
3939
- port: local-p-http
4040
- port: local-r-http
41+
{{- end }}
42+
{{- if and .Values.csi.bmcpfs.enabled .Values.csi.bmcpfs.controller.enabled }}
43+
- port: bmcpfs-p-http
44+
- port: bmcpfs-a-http
4145
{{- end }}
4246
selector:
4347
matchLabels:

0 commit comments

Comments
 (0)