Skip to content

Instantly share code, notes, and snippets.

@Reclyptor
Last active September 16, 2024 09:18
Show Gist options
  • Select an option

  • Save Reclyptor/7f64655e6177ce4f68b6974e9bf0204e to your computer and use it in GitHub Desktop.

Select an option

Save Reclyptor/7f64655e6177ce4f68b6974e9bf0204e to your computer and use it in GitHub Desktop.
Kubernetes
#! /bin/bash
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://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
kubectl get nodes -o wide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment