Added disable_volume_zone_conflict variable
This commit is contained in:
parent
8c45c88d15
commit
3125f93b3f
3 changed files with 11 additions and 3 deletions
|
@ -179,3 +179,8 @@ local_volumes_enabled: false
|
||||||
## Supplementary addresses that can be added in kubernetes ssl keys.
|
## Supplementary addresses that can be added in kubernetes ssl keys.
|
||||||
## That can be usefull for example to setup a keepalived virtual IP
|
## That can be usefull for example to setup a keepalived virtual IP
|
||||||
# supplementary_addresses_in_ssl_keys: [10.0.0.1, 10.0.0.2, 10.0.0.3]
|
# supplementary_addresses_in_ssl_keys: [10.0.0.1, 10.0.0.2, 10.0.0.3]
|
||||||
|
|
||||||
|
## Running on top of openstack vms with cinder enabled may lead to unschedulable pods due to NoVolumeZoneConflict restriction in kube-scheduler.
|
||||||
|
## See https://github.com/kubernetes-incubator/kubespray/issues/2141
|
||||||
|
## Set this variable to true to get rid of this issue
|
||||||
|
disable_volume_zone_conflict: false
|
||||||
|
|
|
@ -80,3 +80,6 @@ scheduler_custom_flags: []
|
||||||
# kubeadm settings
|
# kubeadm settings
|
||||||
# Value of 0 means it never expires
|
# Value of 0 means it never expires
|
||||||
kubeadm_token_ttl: 0
|
kubeadm_token_ttl: 0
|
||||||
|
|
||||||
|
## Variable for influencing kube-scheduler behaviour
|
||||||
|
disable_volume_zone_conflict: false
|
||||||
|
|
|
@ -28,7 +28,7 @@ spec:
|
||||||
- scheduler
|
- scheduler
|
||||||
- --leader-elect=true
|
- --leader-elect=true
|
||||||
- --kubeconfig={{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml
|
- --kubeconfig={{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml
|
||||||
{% if cloud_provider == 'openstack' %}
|
{% if cloud_provider == 'openstack' and disable_volume_zone_conflict %}
|
||||||
- --policy-config-file={{ kube_config_dir }}/kube-scheduler-policy.yaml
|
- --policy-config-file={{ kube_config_dir }}/kube-scheduler-policy.yaml
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- --profiling=false
|
- --profiling=false
|
||||||
|
@ -65,7 +65,7 @@ spec:
|
||||||
- mountPath: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
|
- mountPath: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
|
||||||
name: kubeconfig
|
name: kubeconfig
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{% if cloud_provider == 'openstack' %}
|
{% if cloud_provider == 'openstack' and disable_volume_zone_conflict %}
|
||||||
- mountPath: "{{ kube_config_dir }}/kube-scheduler-policy.yaml"
|
- mountPath: "{{ kube_config_dir }}/kube-scheduler-policy.yaml"
|
||||||
name: kube-scheduler-policy
|
name: kube-scheduler-policy
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -85,7 +85,7 @@ spec:
|
||||||
- name: kubeconfig
|
- name: kubeconfig
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
|
path: "{{ kube_config_dir }}/kube-scheduler-kubeconfig.yaml"
|
||||||
{% if cloud_provider == 'openstack' %}
|
{% if cloud_provider == 'openstack' and disable_volume_zone_conflict %}
|
||||||
- name: kube-scheduler-policy
|
- name: kube-scheduler-policy
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "{{ kube_config_dir }}/kube-scheduler-policy.yaml"
|
path: "{{ kube_config_dir }}/kube-scheduler-policy.yaml"
|
||||||
|
|
Loading…
Reference in a new issue