Skip to content

Instantly share code, notes, and snippets.

@fuweid
Last active October 22, 2023 23:26
Show Gist options
  • Save fuweid/73286c48995ff272b271e19b52648d7d to your computer and use it in GitHub Desktop.
Save fuweid/73286c48995ff272b271e19b52648d7d to your computer and use it in GitHub Desktop.
kubeadm init
kubeadm init --cri-socket /run/containerd/containerd.sock --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/master/Documentation/kube-flannel.yml
kubectl taint nodes ubuntu-bionic node-role.kubernetes.io/master-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment