概述
描述了在ARM架构Centos8下安装containerd+Kubernetes-1.27.2+helm3+metrics的安装
containerd安装
## 卸载docker-ce、docker
yum remove docker-ce docker
## 下载contained 注意选择对应的版本
mkdir -p /usr/local/src/containerd_install && cd /usr/local/src/containerd_install
wget https://github.com/containerd/containerd/releases/download/v1.7.0/containerd-1.7.0-linux-amd64.tar.gz
wget https://github.com/containerd/containerd/releases/download/v1.7.0/containerd-1.7.0-linux-arm64.tar.gz
## 解压
tar Cxzvf /usr/local containerd-1.7.0-linux-arm64.tar.gz
## 配置contained服务
cat /lib/systemd/system/containerd.service
[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target local-fs.target
[Service]
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/containerd
Type=notify
Delegate=yes
KillMode=process
Restart=always
RestartSec=5
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity
LimitCORE=infinity
LimitNOFILE=infinity
# Comment TasksMax if your systemd version does not supports it.
# Only systemd 226 and above support this version.
TasksMax=infinity
OOMScoreAdjust=-999
[Install]
WantedBy=multi-user.target
EOF
## 重启服务
systemctl daemon-reload
systemctl enable --now containerd
## 配置containerd
mkdir -p /etc/containerd
containerd config default | tee /etc/containerd/config.toml
str1="registry.k8s.io/pause:3.8"
str2="registry.aliyuncs.com/google_containers/pause:3.9"
sed -i "/sandbox_image/ s%${str1}%${str2}%g" /etc/containerd/config.toml
sed -i '/SystemdCgroup/ s/false/true/g' /etc/containerd/config.toml
## 重启containerd
systemctl restart containerd && systemctl status containerd
## 配置cri客户端
cat > /etc/crictl.yaml