All commands needed to setup master/worker node (for single copy paste convenient)
swapoff -a
sudo su
CNI_VERSION=" v0.6.0"
mkdir -p /opt/cni/bin
curl -L " https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION} /cni-plugins-amd64-${CNI_VERSION} .tgz" | tar -C /opt/cni/bin -xz
CRICTL_VERSION=" v1.11.1"
mkdir -p /opt/bin
curl -L " https://github.com/kubernetes-incubator/cri-tools/releases/download/${CRICTL_VERSION} /crictl-${CRICTL_VERSION} -linux-amd64.tar.gz" | tar -C /opt/bin -xz
RELEASE=" $( curl -sSL https://dl.k8s.io/release/stable.txt) "
mkdir -p /opt/bin
cd /opt/bin
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE} /bin/linux/amd64/{kubeadm,kubelet,kubectl}
chmod +x {kubeadm,kubelet,kubectl}
curl -sSL " https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE} /build/debs/kubelet.service" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service
mkdir -p /etc/systemd/system/kubelet.service.d
curl -sSL " https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE} /build/debs/10-kubeadm.conf" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
exit
sudo systemctl enable --now kubelet
sudo systemctl daemon-reload
sudo systemctl restart kubelet
sudo kubeadm config images pull
sudo systemctl enable docker.service