Add resources section to all containers releated to Vsphere CSI driver (#9687)

This commit is contained in:
Eugene Artemenko
2023-02-27 12:36:20 +02:00
committed by GitHub
parent 62f34c6085
commit 5cbcec8968
3 changed files with 50 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ spec:
- "--v=5"
- "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
{% if vsphere_csi_node_driver_registrar_resources | length > 0 %}
resources:
{{ vsphere_csi_node_driver_registrar_resources | default({}) | to_nice_yaml | trim | indent(width=10) }}
{% endif %}
env:
- name: ADDRESS
value: /csi/csi.sock
@@ -65,6 +69,10 @@ spec:
- "--supervisor-fss-namespace={{ vsphere_csi_namespace }}"
- "--use-gocsi=false"
imagePullPolicy: "Always"
{% if vsphere_csi_driver_resources | length > 0 %}
resources:
{{ vsphere_csi_driver_resources | default({}) | to_nice_yaml | trim | indent(width=10) }}
{% endif %}
env:
- name: NODE_NAME
valueFrom:
@@ -123,6 +131,10 @@ spec:
- "--v=4"
{% endif %}
- "--csi-address=/csi/csi.sock"
{% if vsphere_csi_liveness_probe_ds_resources | length > 0 %}
resources:
{{ vsphere_csi_liveness_probe_ds_resources | default({}) | to_nice_yaml | trim | indent(width=10) }}
{% endif %}
volumeMounts:
- name: plugin-dir
mountPath: /csi