20 lines
579 B
Bash
Executable File
20 lines
579 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
|
|
|
|
url="https://raw.githubusercontent.com/tigera/canal/master"
|
|
url="https://raw.githubusercontent.com/projectcalico/canal/7deb07cda04147ab49115f437151705c747d0374"
|
|
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
|