Skip to content

Instantly share code, notes, and snippets.

@sufuf3
Last active April 9, 2018 09:18
Show Gist options
  • Save sufuf3/4567063dcc7f5269101deede56c6e8a1 to your computer and use it in GitHub Desktop.
Save sufuf3/4567063dcc7f5269101deede56c6e8a1 to your computer and use it in GitHub Desktop.
sudo kubeadm reset
sudo swapoff -a
sudo kubeadm init --pod-network-cidr=10.244.0.0/16
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://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml
kubectl taint nodes --all node-role.kubernetes.io/master-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment