local volume provisioner should not run on control plane nodes by default (#8805)
This commit is contained in:
parent
aef25819bc
commit
bb67b654c5
3 changed files with 7 additions and 2 deletions
|
@ -52,6 +52,9 @@ local_volume_provisioner_enabled: false
|
||||||
# - "2"
|
# - "2"
|
||||||
# volume_mode: Filesystem
|
# volume_mode: Filesystem
|
||||||
# fs_type: ext4
|
# fs_type: ext4
|
||||||
|
# local_volume_provisioner_tolerations:
|
||||||
|
# - effect: NoSchedule
|
||||||
|
# operator: Exists
|
||||||
|
|
||||||
# CSI Volume Snapshot Controller deployment, set this to true if your CSI is able to manage snapshots
|
# CSI Volume Snapshot Controller deployment, set this to true if your CSI is able to manage snapshots
|
||||||
# currently, setting cinder_csi_enabled=true would automatically enable the snapshot controller
|
# currently, setting cinder_csi_enabled=true would automatically enable the snapshot controller
|
||||||
|
|
|
@ -5,6 +5,7 @@ local_volume_provisioner_nodelabels: []
|
||||||
# - kubernetes.io/hostname
|
# - kubernetes.io/hostname
|
||||||
# - topology.kubernetes.io/region
|
# - topology.kubernetes.io/region
|
||||||
# - topology.kubernetes.io/zone
|
# - topology.kubernetes.io/zone
|
||||||
|
local_volume_provisioner_tolerations: []
|
||||||
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
|
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
|
||||||
# see https://github.com/ansible/ansible/issues/17324
|
# see https://github.com/ansible/ansible/issues/17324
|
||||||
local_volume_provisioner_use_node_name_only: false
|
local_volume_provisioner_use_node_name_only: false
|
||||||
|
|
|
@ -20,9 +20,10 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
priorityClassName: {% if local_volume_provisioner_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
|
priorityClassName: {% if local_volume_provisioner_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
|
||||||
serviceAccountName: local-volume-provisioner
|
serviceAccountName: local-volume-provisioner
|
||||||
|
{% if local_volume_provisioner_tolerations %}
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
{{ local_volume_provisioner_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
||||||
operator: Exists
|
{% endif %}
|
||||||
containers:
|
containers:
|
||||||
- name: provisioner
|
- name: provisioner
|
||||||
image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }}
|
image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }}
|
||||||
|
|
Loading…
Reference in a new issue