From 35542713aa9f0e084a77534c0d5022b6b79faa1f Mon Sep 17 00:00:00 2001 From: Jake Yip Date: Thu, 9 May 2019 12:19:27 +1000 Subject: [PATCH] Make kubernetes apiserver start after network Without this, the service fails to start with runc[1150]: error: unable to find suitable network address.error='no default routes found in "/proc/net/route" or "/proc/net/ipv6_route"'. Try to set the AdvertiseAddress directly or provide a valid BindAddress to fix this Story: 2005698 Task: 31019 Change-Id: I0da4381cdc06f15815bd5ae51417aaf93d36b2c1 --- dockerfiles/kubernetes-apiserver/service.template | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfiles/kubernetes-apiserver/service.template b/dockerfiles/kubernetes-apiserver/service.template index d895a99825..7aaa5d3081 100644 --- a/dockerfiles/kubernetes-apiserver/service.template +++ b/dockerfiles/kubernetes-apiserver/service.template @@ -1,5 +1,6 @@ [Unit] Description=kubernetes-apiserver +After=network-online.target [Service] ExecStart=$EXEC_START