1 2 3 4 5 6 7
| cat >/etc/systemd/system/containerd.service.d/http-proxy.conf<<END [Service] Environment="HTTP_PROXY=http://192.168.101.42:10811" "HTTPS_PROXY=http://192.168.101.42:10811" "NO_PROXY=lb-apiserver.kubernetes.local, 192.168.108.100,192.168.108.21,master1,master1.cluster.local,192.168.108.22,master2,master2.cluster.local,192.168.108.23,master3,master3.cluster.local,192.168.108.24,node1,node1.cluster.local,192.168.108.25,node2,node2.cluster.local,192.168.108.26,node3,node3.cluster.local,127.0.0.1,localhost,10.233.0.0/18,10.233.64.0/18,svc,svc.cluster.local" END
systemctl daemon-reload systemctl restart containerd
|