Update weavenet_setup.sh

This commit is contained in:
Torma Kristóf 2019-04-24 13:27:58 +02:00 committed by GitHub
parent 4256a1bf35
commit f13a5d9ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -1,10 +1,4 @@
#!/bin/bash
## Initialize Kubernetes
kubeadm init --ignore-preflight-errors=SystemVerification
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
## Apply WeaveNet CNI plugin
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"