🐷 containerd配置代理
# 容器运行时代理配置
```
cat << EOF | tee /etc/systemd/system/containerd.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://10.215.59.186:7890/"
Environment="HTTPS_PROXY=http://10.215.59.186:7890/"
Environment="NO_PROXY=10.244.0.0/16,192.168.0.0/16,localhost,127.0.0.0/8,172.16.0.0/12,.svc,.cluster.local,kubernetes,kubernetes.default,master,10.96.0.1"
EOF
```
```
systemctl daemon-reload && systemctl restart containerd
```
# 不使用代理了,要用镜像的时候用docker下载然后导入containerd里面吧
搞的k8s非常不稳定

rm /etc/systemd/system/containerd.service.d/http-proxy.conf