[+] 增加 crictl 配置
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 11s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 11s
This commit is contained in:
parent
7b41648aa2
commit
a4e6bf8d97
@ -48,6 +48,13 @@ sed -i "s|sandbox = 'registry.k8s.io|sandbox = 'docker.martin98.com/k8s|g" /etc/
|
||||
sed -ri '0,/(config_path).*/s@(config_path).*@\1 = "/etc/containerd/certs.d"@' /etc/containerd/config.toml
|
||||
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
|
||||
|
||||
cat <<EOF >> /etc/crictl.yaml
|
||||
runtime-endpoint: unix:///run/containerd/containerd.sock
|
||||
image-endpoint: unix:///run/containerd/containerd.sock
|
||||
timeout: 10
|
||||
debug: true
|
||||
EOF
|
||||
|
||||
cat <<EOF >> /etc/containerd/config.toml
|
||||
[plugins."io.containerd.grpc.v1.cri".registry]
|
||||
config_path = "/etc/containerd/certs.d"
|
||||
|
@ -248,3 +248,10 @@ kubeadm join 10.1.2.200:6443 \
|
||||
# 验证集群
|
||||
kubectl get nodes
|
||||
```
|
||||
|
||||
### 其他说明
|
||||
```bash
|
||||
# 拉取镜像失败可能导致节点不正常
|
||||
systemctl restart kubelet
|
||||
systemctl restart containerd # 或 docker
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user