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
This commit is contained in:
Jake Yip 2019-05-09 12:19:27 +10:00 committed by Feilong Wang
parent 85bd42474b
commit 35542713aa

View File

@ -1,5 +1,6 @@
[Unit]
Description=kubernetes-apiserver
After=network-online.target
[Service]
ExecStart=$EXEC_START