Install kubelet, kubeadm, docker, kubectl and kubernetes-cni
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
setenforce 0
yum install -y docker kubelet kubeadm kubectl kubernetes-cni
systemctl enable docker && systemctl start docker
systemctl enable kubelet && systemctl start kubelet
see
5. Edit the 10-kubadm.conf vi /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
Add the following before “ExeStart=”
Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=systemd"
sudo tee /etc/modules-load.d/overlay.conf <<-'EOF'
overlay
EOF
reboot
lsmod | grep overlay
overlay
vi /etc/sysconfig/docker-storage-setup
add
STORAGE_DRIVER="overlay"
systemctl start docker
systemctl start kubelet