DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Cheat Sheet
Kubeadm tips and tricks

Get join command

1
kubeadm token create --print-join-command
Copied!

Reset cluster

1
kubeadm reset
2
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X
Copied!

Install kubeadm, kubectl and kubelet

Setup repository

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

Latest

1
apt-get update
2
apt-get install -y kubelet kubeadm kubectl
3
apt-mark hold kubelet kubeadm kubectl
Copied!

Specific version

1
apt-get install \
2
  kubelet=1.14.2-00 \
3
  kubeadm=1.14.2-00 \
4
  kubectl=1.14.2-00 \
5
  kubernetes-cni=0.7.5-00
6
apt-mark hold kubelet kubeadm kubectl
Copied!

Get kubeadm dependencies versions

1
kubelet --version
2
kubeadm version
3
kubectl version
4
dpkg --list |grep kubernetes-cni
Copied!

Network

Get Pod and Service CIDRs

1
kubeadm config view | grep Subnet
Copied!