# k8s containerd容器驱动安装
# 安装yum-utils工具
$ sudo yum install -y yum-utils
# 添加阿里云docker镜像仓库
$ sudo yum-config-manager \
--add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# 安装containerd
$ sudo yum install containerd -y
# 初始化containerd配置信息
$ sudo madir /etc/containerd
$ sudo containerd config default > /etc/containerd/config.toml
# 修改containerd sand_box 和 Cgroup
$ vim /etc/containerd/config.toml
# 修改sand_box
# 查找sand_image 将k8s.gcr.io/pause:3.6 替换成阿里源 registry.aliyuncs.com/google_containers/pause:3.6
# 修改Cgroup
# 查找SystemdCgroup 将false 改为 true
# 启动containerd
$ sudo systemctl daemon-reload
$ sudo systemctl enable containerd
$ sudo systemctl start containerd