Skip to content

Commit

Permalink
BYO - Added instructions to make sure routing gets added to the contr…
Browse files Browse the repository at this point in the history
…oller to be worker IP aware
  • Loading branch information
ToroNZ committed Dec 28, 2017
1 parent 0cc8522 commit fbe0890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_configuration_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generate_configuration_files() {
# BYO
if [[ "$CLOUD_PROVIDER" == "byo" ]]; then
internal_ip=${IPCTRL1}
fi
fi
# Generate each workers kubeconfig
# outputs: worker-0.kubeconfig worker-1.kubeconfig worker-2.kubeconfig
for i in $(seq 0 "$WORKERS"); do
Expand Down
6 changes: 6 additions & 0 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ do_end_checks(){
fi
if [[ "$CLOUD_PROVIDER" == "byo" ]]; then
controller_ip=${IPCTRL1}
echo "Make sure you add a static route to each worker..."
for i in $(seq 0 "$WORKERS"); do
instance="worker-node-${i}"
worker_ip=$(ping -c1 ${instance} | awk '/PING/ { print $3 }' | tr -d '()')
echo "route add -net 10.200.${i}.0 netmask 255.255.255.0 gw ${worker_ip}"
done
fi

# check that we can reach the kube-apiserver externally
Expand Down

0 comments on commit fbe0890

Please sign in to comment.