Skip to content

Instantly share code, notes, and snippets.

@ndunks
Created December 7, 2021 02:28
Show Gist options
  • Save ndunks/23c1ed4348380d9594d551c400e21db5 to your computer and use it in GitHub Desktop.
Save ndunks/23c1ed4348380d9594d551c400e21db5 to your computer and use it in GitHub Desktop.
# Enable testing community repo
apk install containerd kubeadm kubectl cni-plugins
service machine-id start
rc-update add machine-id boot
kubeadm init --pod-network-cidr=10.244.0.0/16 --control-plane-endpoint=kubemaster.local
# I use Alpine v3.15, need downgrade cni-plugins on v3.14 that have /usr/libexec/flannel
apk add cni-plugins=0.9.1-r2
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment