Skip to content
Snippets Groups Projects
Unverified Commit bb67b654 authored by spaced's avatar spaced Committed by GitHub
Browse files

local volume provisioner should not run on control plane nodes by default (#8805)

parent aef25819
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,9 @@ local_volume_provisioner_enabled: false
# - "2"
# volume_mode: Filesystem
# 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
# currently, setting cinder_csi_enabled=true would automatically enable the snapshot controller
......
......@@ -5,6 +5,7 @@ local_volume_provisioner_nodelabels: []
# - kubernetes.io/hostname
# - topology.kubernetes.io/region
# - topology.kubernetes.io/zone
local_volume_provisioner_tolerations: []
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
# see https://github.com/ansible/ansible/issues/17324
local_volume_provisioner_use_node_name_only: false
......
......@@ -20,9 +20,10 @@ spec:
spec:
priorityClassName: {% if local_volume_provisioner_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
serviceAccountName: local-volume-provisioner
{% if local_volume_provisioner_tolerations %}
tolerations:
- effect: NoSchedule
operator: Exists
{{ local_volume_provisioner_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
{% endif %}
containers:
- name: provisioner
image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment