This repository was archived by the owner on Oct 31, 2019. It is now read-only.
File tree 4 files changed +9
-1
lines changed
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
5
5
[Service]
6
6
Type =notify
7
7
ExecStart =/usr/local/bin/flanneld \
8
+ -ip-masq =true \
8
9
-iface $IP_LOCAL \
9
10
-etcd-endpoints $ETCD_SERVER \
10
11
-etcd-prefix /flannel/network
11
12
Restart =always
12
13
RestartSec =10
14
+ After =docker.service kubelet.service
13
15
14
16
[Install]
15
17
WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ systemctl start kubelet
114
114
115
115
until kubectl get all; do sleep 1 && echo -n " ." ; done
116
116
117
+ systemctl restart flannel
118
+
117
119
# # Wait for k8s master to be available. There is a possible race on pod networks otherwise.
118
120
until [ " $( curl localhost:8080/healthz 2> /dev/null) " == " ok" ]; do
119
121
sleep 3
@@ -125,4 +127,4 @@ kubectl create -f /root/services/kube-dns.yaml
125
127
# # install kubernetes-dashboard
126
128
kubectl create -f /root/services/kubernetes-dashboard.yaml
127
129
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
5
5
[Service]
6
6
Type =notify
7
7
ExecStart =/usr/local/bin/flanneld \
8
+ -ip-masq =true \
8
9
-iface $IP_LOCAL \
9
10
-etcd-endpoints $ETCD_SERVER \
10
11
-etcd-prefix /flannel/network
11
12
Restart =always
12
13
RestartSec =10
14
+ After =docker.service kubelet.service
13
15
14
16
[Install]
15
17
WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -151,5 +151,7 @@ systemctl daemon-reload
151
151
systemctl enable kubelet
152
152
systemctl start kubelet
153
153
154
+ systemctl restart flannel
155
+
154
156
# #####################################
155
157
echo " Finished running setup.sh"
You can’t perform that action at this time.
0 commit comments