kolla-kubernetes/tests/bin/setup_canal.sh
Kevin Fox a2e5038209 More dns gate fixes
The previous ps attempted to check for dns issues. We discovered some
more and this fixes the rest. The gate now checks to see if dns both
internally and externally works and blocks until it does. It fixes
external dns on Ubuntu. It also cleans up the gate output to make it
easier to see the last thing that failed.

Change-Id: I52226ff4d8419b717487428fbf0e5c832ceedb27
2016-12-10 17:42:56 -08:00

19 lines
478 B
Bash
Executable File

#!/bin/bash -xe
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
url="https://raw.githubusercontent.com/tigera/canal/master"
url="$url/k8s-install/kubeadm/canal.yaml"
curl "$url" -o /tmp/canal.yaml
sed -i "s@192.168.0.0/16@172.16.130.0/22@" /tmp/canal.yaml
sed -i "s@10.96.232.136@172.16.128.100@" /tmp/canal.yaml
kubectl create -f /tmp/canal.yaml
$DIR/tools/pull_containers.sh kube-system
$DIR/tools/wait_for_pods.sh kube-system
$DIR/tools/test_kube_dns.sh