kubeless/deploy/flannel_setup.sh

11 lines
378 B
Bash
Raw Normal View History

2019-03-05 18:33:23 +01:00
#!/bin/bash
## Initialize Kubernetes
kubeadm init --ignore-preflight-errors=SystemVerification --pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
## Apply Flannel CNI plugin
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml