This repository was archived by the owner on Oct 31, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ Documentation=https://github.com/coreos/flannel
55[Service]
66Type =notify
77ExecStart =/usr/local/bin/flanneld \
8+ -ip-masq =true \
89 -iface $IP_LOCAL \
910 -etcd-endpoints $ETCD_SERVER \
1011 -etcd-prefix /flannel/network
1112Restart =always
1213RestartSec =10
14+ After =docker.service kubelet.service
1315
1416[Install]
1517WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ systemctl start kubelet
114114
115115until kubectl get all; do sleep 1 && echo -n " ." ; done
116116
117+ systemctl restart flannel
118+
117119# # Wait for k8s master to be available. There is a possible race on pod networks otherwise.
118120until [ " $( curl localhost:8080/healthz 2> /dev/null) " == " ok" ]; do
119121 sleep 3
@@ -125,4 +127,4 @@ kubectl create -f /root/services/kube-dns.yaml
125127# # install kubernetes-dashboard
126128kubectl create -f /root/services/kubernetes-dashboard.yaml
127129
128- echo " Finished running setup.sh"
130+ echo " Finished running setup.sh"
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ Documentation=https://github.com/coreos/flannel
55[Service]
66Type =notify
77ExecStart =/usr/local/bin/flanneld \
8+ -ip-masq =true \
89 -iface $IP_LOCAL \
910 -etcd-endpoints $ETCD_SERVER \
1011 -etcd-prefix /flannel/network
1112Restart =always
1213RestartSec =10
14+ After =docker.service kubelet.service
1315
1416[Install]
1517WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -151,5 +151,7 @@ systemctl daemon-reload
151151systemctl enable kubelet
152152systemctl start kubelet
153153
154+ systemctl restart flannel
155+
154156# #####################################
155157echo " Finished running setup.sh"
You can’t perform that action at this time.
0 commit comments