Update weavenet_setup.sh
This commit is contained in:
parent
4256a1bf35
commit
f13a5d9ab5
@ -1,10 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/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
|
## Apply WeaveNet CNI plugin
|
||||||
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
|
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
|
||||||
|
Loading…
Reference in New Issue
Block a user