mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Add resources section to all containers releated to Vsphere CSI driver (#9687)
This commit is contained in:
@@ -38,3 +38,17 @@ vsphere_csi_block_volume_snapshot: false
|
|||||||
|
|
||||||
external_vsphere_user: "{{ lookup('env','VSPHERE_USER') }}"
|
external_vsphere_user: "{{ lookup('env','VSPHERE_USER') }}"
|
||||||
external_vsphere_password: "{{ lookup('env','VSPHERE_PASSWORD') }}"
|
external_vsphere_password: "{{ lookup('env','VSPHERE_PASSWORD') }}"
|
||||||
|
|
||||||
|
# Controller resources
|
||||||
|
vsphere_csi_snapshotter_resources: {}
|
||||||
|
vsphere_csi_provisioner_resources: {}
|
||||||
|
vsphere_syncer_resources: {}
|
||||||
|
vsphere_csi_liveness_probe_controller_resources: {}
|
||||||
|
vsphere_csi_resources: {}
|
||||||
|
vsphere_csi_resizer_resources: {}
|
||||||
|
vsphere_csi_attacher_resources: {}
|
||||||
|
|
||||||
|
# DaemonSet node resources
|
||||||
|
vsphere_csi_node_driver_registrar_resources: {}
|
||||||
|
vsphere_csi_driver_resources: {}
|
||||||
|
vsphere_csi_liveness_probe_ds_resources: {}
|
||||||
|
|||||||
@@ -62,6 +62,10 @@ spec:
|
|||||||
- "--leader-election"
|
- "--leader-election"
|
||||||
- "--kube-api-qps=100"
|
- "--kube-api-qps=100"
|
||||||
- "--kube-api-burst=100"
|
- "--kube-api-burst=100"
|
||||||
|
{% if vsphere_csi_attacher_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_attacher_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
@@ -79,6 +83,10 @@ spec:
|
|||||||
- "--kube-api-qps=100"
|
- "--kube-api-qps=100"
|
||||||
- "--kube-api-burst=100"
|
- "--kube-api-burst=100"
|
||||||
- "--leader-election"
|
- "--leader-election"
|
||||||
|
{% if vsphere_csi_resizer_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_resizer_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
@@ -93,6 +101,10 @@ spec:
|
|||||||
- "--fss-namespace={{ vsphere_csi_namespace }}"
|
- "--fss-namespace={{ vsphere_csi_namespace }}"
|
||||||
- "--supervisor-fss-namespace={{ vsphere_csi_namespace }}"
|
- "--supervisor-fss-namespace={{ vsphere_csi_namespace }}"
|
||||||
- "--use-gocsi=false"
|
- "--use-gocsi=false"
|
||||||
|
{% if vsphere_csi_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
imagePullPolicy: {{ k8s_image_pull_policy }}
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||||
env:
|
env:
|
||||||
- name: CSI_ENDPOINT
|
- name: CSI_ENDPOINT
|
||||||
@@ -139,6 +151,10 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- "--v=4"
|
- "--v=4"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
{% if vsphere_csi_liveness_probe_controller_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_liveness_probe_controller_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: {{ csi_endpoint }}/csi.sock
|
value: {{ csi_endpoint }}/csi.sock
|
||||||
@@ -157,6 +173,10 @@ spec:
|
|||||||
- containerPort: 2113
|
- containerPort: 2113
|
||||||
name: prometheus
|
name: prometheus
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{% if vsphere_syncer_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_syncer_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: FULL_SYNC_INTERVAL_MINUTES
|
- name: FULL_SYNC_INTERVAL_MINUTES
|
||||||
value: "30"
|
value: "30"
|
||||||
@@ -189,6 +209,10 @@ spec:
|
|||||||
# needed only for topology aware setup
|
# needed only for topology aware setup
|
||||||
#- "--feature-gates=Topology=true"
|
#- "--feature-gates=Topology=true"
|
||||||
#- "--strict-topology"
|
#- "--strict-topology"
|
||||||
|
{% if vsphere_csi_provisioner_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_provisioner_resources | default({}) | to_nice_yaml | trim | indent(width=12) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ spec:
|
|||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
- "--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:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
@@ -65,6 +69,10 @@ spec:
|
|||||||
- "--supervisor-fss-namespace={{ vsphere_csi_namespace }}"
|
- "--supervisor-fss-namespace={{ vsphere_csi_namespace }}"
|
||||||
- "--use-gocsi=false"
|
- "--use-gocsi=false"
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
|
{% if vsphere_csi_driver_resources | length > 0 %}
|
||||||
|
resources:
|
||||||
|
{{ vsphere_csi_driver_resources | default({}) | to_nice_yaml | trim | indent(width=10) }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: NODE_NAME
|
- name: NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -123,6 +131,10 @@ spec:
|
|||||||
- "--v=4"
|
- "--v=4"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--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:
|
volumeMounts:
|
||||||
- name: plugin-dir
|
- name: plugin-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
|
|||||||
Reference in New Issue
Block a user