https://kubernetes.io/zh-cn/blog/2022/05/03/kubernetes-1-24-release-announcement/
After its deprecation in v1.20, the dockershim component has been removed from the kubelet in Kubernetes v1.24. From v1.24 onwards, you will need to either use one of the other supported runtimes (such as containerd or CRI-O) or use cri-dockerd if you are relying on Docker Engine as your container runtime. For more information about ensuring your cluster is ready for this removal, please see this guide.
- kube-apiserver v1.24.10
- kube-controller-manager v1.24.10
- kubectl v1.24.10
- kubelet v1.24.10
- kube-proxy v1.24.10
- kube-scheduler v1.24.10
- calico v3.25
- containerd
Due to the size limit of the warehouse, some packages need to be downloaded to the corresponding directory by themselves. The download link is as follows:
# kubernetes
mkdir bin/kubernetes && cd bin/kubernetes
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kube-apiserver
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kube-controller-manager
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kube-proxy
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kube-scheduler
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kubectl
wget https://dl.k8s.io/v1.24.10/bin/linux/amd64/kubelet
# golang
cd /tmp
wget https://go.dev/dl/go1.16.15.linux-amd64.tar.gz
tar -xf go1.16.15.linux-amd64.tar.gz
ln -s go/bin/go /usr/local/bin/go
ln -s go/bin/gofmt /usr/local/bin/gofmt
# etcd
git clone -b v3.5.0 https://github.com/etcd-io/etcd.git
cd etcd/
./build.sh
# last!!
mkdir kubernetes-deployment/bin/etcd
cp bin/* kubernetes-deployment/bin/etcd
# global variable
group_vars/global.yml
cd kubernetes-deployment
# set env
export ANSIBLE_ROOT=$PWD
# test
ansible-playbook -i hosts/xxx setup.yml --sy
# deploy
ansible-playbook -i hosts/xxx setup.yml
It has been verified in an enterprise-level production environment and no problems were found.