From e49dc116e44da4770aa34d48a8f5e35e823341ee Mon Sep 17 00:00:00 2001 From: Pieter Lange Date: Thu, 17 Nov 2016 15:12:09 +0100 Subject: [PATCH] Systemd unit start ordering. --- config/templates/cloud-config-controller | 3 +++ config/templates/cloud-config-worker | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config/templates/cloud-config-controller b/config/templates/cloud-config-controller index 1b670b7ae..02b18a5e5 100644 --- a/config/templates/cloud-config-controller +++ b/config/templates/cloud-config-controller @@ -187,6 +187,9 @@ coreos: - name: efs.service command: start content: | + [Unit] + After=network-online.target + Before=kubelet.service [Service] Type=oneshot ExecStartPre=-/usr/bin/mkdir -p /efs diff --git a/config/templates/cloud-config-worker b/config/templates/cloud-config-worker index ba888f674..8f2354830 100644 --- a/config/templates/cloud-config-worker +++ b/config/templates/cloud-config-worker @@ -178,6 +178,8 @@ coreos: - name: efs.service command: start content: | + [Unit] + After=network-online.target [Service] Type=oneshot ExecStartPre=-/usr/bin/mkdir -p /efs