-
-
Save ronaldpetty/f68c1ba9ee9d92bd1fbc2f00fc163842 to your computer and use it in GitHub Desktop.
post reboot steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
if [ -z ${K8S_VERSION+x} ]; then K8S_VERSION="--kubernetes-version=stable-1" ; else K8S_VERSION="--kubernetes-version=$K8S_VERSION"; fi | |
sudo kubeadm init --cri-socket=unix:///run/cri-dockerd.sock $K8S_VERSION | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" | |
kubectl taint node --all node-role.kubernetes.io/master- | |
kubectl taint node --all node-role.kubernetes.io/control-plane- | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment