mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Add resources section to all containers releated to Vsphere CSI driver (#9687)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user