Cheat Sheet

Kubeadm tips and tricks

Get join command

kubeadm token create --print-join-command

Reset cluster

kubeadm reset
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X

Install kubeadm, kubectl and kubelet

Setup repository

apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update

Latest

Specific version

Get kubeadm dependencies versions

Network

Get Pod and Service CIDRs

Last updated