Last active
February 21, 2022 11:03
-
-
Save alexcmd/255ccfb67054e5ba4d3fb51dc34bd675 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12 | |
kubectl taint nodes --all node-role.kubernetes.io/master- | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
kubectl get ds/kube-proxy -o go-template='{{.spec.updateStrategy.type}}{{"\n"}}' --namespace=kube-system | |
wget https://raw.githubusercontent.com/Microsoft/SDN/master/Kubernetes/flannel/l2bridge/manifests/node-selector-patch.yml | |
kubectl patch ds/kube-proxy --patch "$(cat node-selector-patch.yml)" -n=kube-system | |
wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | |
kubectl apply -f kube-flannel.yml | |
kubectl patch ds/kube-flannel-ds-amd64 --patch "$(cat node-selector-patch.yml)" -n=kube-system | |
kubectl get pods --all-namespaces | |
kubectl get ds -n kube-system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment