Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #30 from jan-g/issue_26_b
Browse files Browse the repository at this point in the history
Correct flanneld settings
  • Loading branch information
jlamillan authored Oct 26, 2017
2 parents 309e62a + 8f40c1e commit 0293c9b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions instances/k8smaster/scripts/flannel.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Documentation=https://github.com/coreos/flannel
[Service]
Type=notify
ExecStart=/usr/local/bin/flanneld \
-ip-masq=true \
-iface $IP_LOCAL \
-etcd-endpoints $ETCD_SERVER \
-etcd-prefix /flannel/network
Restart=always
RestartSec=10
After=docker.service kubelet.service

[Install]
WantedBy=multi-user.target
4 changes: 3 additions & 1 deletion instances/k8smaster/scripts/setup.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ systemctl start kubelet

until kubectl get all; do sleep 1 && echo -n "."; done

systemctl restart flannel

## Wait for k8s master to be available. There is a possible race on pod networks otherwise.
until [ "$(curl localhost:8080/healthz 2>/dev/null)" == "ok" ]; do
sleep 3
Expand All @@ -125,4 +127,4 @@ kubectl create -f /root/services/kube-dns.yaml
## install kubernetes-dashboard
kubectl create -f /root/services/kubernetes-dashboard.yaml

echo "Finished running setup.sh"
echo "Finished running setup.sh"
2 changes: 2 additions & 0 deletions instances/k8sworker/scripts/flannel.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Documentation=https://github.com/coreos/flannel
[Service]
Type=notify
ExecStart=/usr/local/bin/flanneld \
-ip-masq=true \
-iface $IP_LOCAL \
-etcd-endpoints $ETCD_SERVER \
-etcd-prefix /flannel/network
Restart=always
RestartSec=10
After=docker.service kubelet.service

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions instances/k8sworker/scripts/setup.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,7 @@ systemctl daemon-reload
systemctl enable kubelet
systemctl start kubelet

systemctl restart flannel

######################################
echo "Finished running setup.sh"

0 comments on commit 0293c9b

Please sign in to comment.