From 6ca8689a17afa8e0a166e78e783c355942c1e82e Mon Sep 17 00:00:00 2001 From: Aleksander Morozov Date: Wed, 27 Sep 2017 11:36:25 +0300 Subject: [PATCH] Fix Flannel provisioning Flannel starts only on the first kube-master, so flannel subnet.env exists only on this node. --- roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml b/roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml index 607c7d617..d40a6ceaf 100644 --- a/roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml +++ b/roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml @@ -20,3 +20,4 @@ path: /run/flannel/subnet.env delay: 5 timeout: 600 + when: inventory_hostname == groups['kube-master'][0]