dnf config-manager --add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y containerd.io
containerd config default | sudo tee /etc/containerd/config.toml
vi /etc/containerd/config.toml
systemctl restart containerd && \
systemctl enable containerd
systemctl statusa containerd
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.27/rpm
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.27/rpm/repodata/repomd.xml.key
exclude=kubelet kubeadm kubectl
EOF
dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
systemctl enable --now kubelet