diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2018-06-19 09:42:22 -0400 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2018-07-06 06:15:10 -0400 |
commit | 4d8115f9d6c328ff6ffc164e87fa6e51ff9d0961 (patch) | |
tree | ad1a3fb19cfef54b3bbd8117b48fbe5b947af1c9 /src/vagrant/kubeadm_kata/master_setup.sh | |
parent | f5e9d072a9d4d896a9da40dbfef8a5ca9abd7924 (diff) |
enable kata container with ovn cni
Change-Id: I3d79c13fca011af83e5c9109319f8f4cc49b8b85
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_kata/master_setup.sh')
-rw-r--r-- | src/vagrant/kubeadm_kata/master_setup.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/vagrant/kubeadm_kata/master_setup.sh b/src/vagrant/kubeadm_kata/master_setup.sh index 3f1177e..42b3aee 100644 --- a/src/vagrant/kubeadm_kata/master_setup.sh +++ b/src/vagrant/kubeadm_kata/master_setup.sh @@ -17,16 +17,11 @@ set -ex -sudo kubeadm init --skip-preflight-checks --apiserver-advertise-address=192.168.1.10 --service-cidr=10.96.0.0/16 --pod-network-cidr=10.244.0.0/16 --token 8c5adc.1cec8dbf339093f0 +sudo kubeadm init --skip-preflight-checks --apiserver-advertise-address=192.168.1.10 --service-cidr=10.96.0.0/16 --pod-network-cidr=10.32.0.0/12 --token 8c5adc.1cec8dbf339093f0 mkdir ~/.kube sudo cp /etc/kubernetes/admin.conf .kube/config sudo chown $(id -u):$(id -g) ~/.kube/config -kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml +nohup /usr/bin/kubectl proxy --address=0.0.0.0 --accept-hosts=.* --port=8080 & sleep 1 -r=0 -while [ "$r" -ne "1" ] -do - sleep 30 - r=$(kubectl get pods -n kube-system | grep -v Running | wc -l) -done +sudo ovnkube -k8s-kubeconfig /home/vagrant/.kube/config -net-controller -loglevel=4 -k8s-apiserver=http://192.168.1.10:8080 -logfile=/var/log/openvswitch/ovnkube.log -init-master=master -cluster-subnet=10.32.0.0/12 -service-cluster-ip-range=10.96.0.0/16 -nodeport -nb-address=tcp://192.168.1.10:6631 -sb-address=tcp://192.168.1.10:6632 & |