From 730caa3d586a38d22d46fb8d08cbce59528f073a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Thu, 15 Nov 2018 00:59:20 +0100 Subject: [PATCH] Add PriorityClasses on the last master. (#3706) --- roles/kubernetes-apps/cluster_roles/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes-apps/cluster_roles/tasks/main.yml b/roles/kubernetes-apps/cluster_roles/tasks/main.yml index de2e6f840..67cd806a2 100644 --- a/roles/kubernetes-apps/cluster_roles/tasks/main.yml +++ b/roles/kubernetes-apps/cluster_roles/tasks/main.yml @@ -179,7 +179,7 @@ copy: src=k8s-cluster-critical-pc.yml dest={{ kube_config_dir }}/k8s-cluster-critical-pc.yml when: - 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 kube: @@ -190,4 +190,4 @@ state: latest when: - kube_version is version('v1.11.1', '>=') - - inventory_hostname == groups['kube-master'][0] + - inventory_hostname == groups['kube-master']|last