Add PriorityClasses on the last master. (#3706)
This commit is contained in:
parent
7deb842030
commit
730caa3d58
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@
|
||||||
copy: src=k8s-cluster-critical-pc.yml dest={{ kube_config_dir }}/k8s-cluster-critical-pc.yml
|
copy: src=k8s-cluster-critical-pc.yml dest={{ kube_config_dir }}/k8s-cluster-critical-pc.yml
|
||||||
when:
|
when:
|
||||||
- kube_version is version('v1.11.1', '>=')
|
- kube_version is version('v1.11.1', '>=')
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master']|last
|
||||||
|
|
||||||
- name: PriorityClass | Create k8s-cluster-critical
|
- name: PriorityClass | Create k8s-cluster-critical
|
||||||
kube:
|
kube:
|
||||||
|
@ -190,4 +190,4 @@
|
||||||
state: latest
|
state: latest
|
||||||
when:
|
when:
|
||||||
- kube_version is version('v1.11.1', '>=')
|
- kube_version is version('v1.11.1', '>=')
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master']|last
|
||||||
|
|
Loading…
Reference in a new issue