@@ -43,10 +43,10 @@ The `containerd.service.d` directory will need to be created for this file. You
4343[source,yaml,subs="verbatim,attributes,quotes"]
4444----
4545mkdir -p /etc/systemd/system/containerd.service.d
46- echo '[Service]' > /etc/systemd/system/containerd.service.d
47- echo 'Environment="HTTP_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/containerd.service.d
48- echo 'Environment="HTTPS_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/containerd.service.d
49- echo 'Environment="NO_PROXY=localhost"' >> /etc/systemd/system/containerd.service.d
46+ echo '[Service]' > /etc/systemd/system/containerd.service.d/http-proxy.conf
47+ echo 'Environment="HTTP_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/containerd.service.d/http-proxy.conf
48+ echo 'Environment="HTTPS_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/containerd.service.d/http-proxy.conf
49+ echo 'Environment="NO_PROXY=localhost"' >> /etc/systemd/system/containerd.service.d/http-proxy.conf
5050systemctl daemon-reload
5151systemctl restart containerd
5252----
@@ -72,12 +72,12 @@ The `kubelet.service.d` directory must be created for this file. You will need t
7272[source,yaml,subs="verbatim,attributes,quotes"]
7373----
7474mkdir -p /etc/systemd/system/kubelet.service.d
75- echo '[Service]' > /etc/systemd/system/kubelet.service.d
76- echo 'Environment="HTTP_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/kubelet.service.d
77- echo 'Environment="HTTPS_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/kubelet.service.d
78- echo 'Environment="NO_PROXY=localhost"' >> /etc/systemd/system/kubelet.service.d
75+ echo '[Service]' > /etc/systemd/system/kubelet.service.d/http-proxy.conf
76+ echo 'Environment="HTTP_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/kubelet.service.d/http-proxy.conf
77+ echo 'Environment="HTTPS_PROXY=http://[.replaceable]#proxy-domain:port#"' >> /etc/systemd/system/kubelet.service.d/http-proxy.conf
78+ echo 'Environment="NO_PROXY=localhost"' >> /etc/systemd/system/kubelet.service.d/http-proxy.conf
7979systemctl daemon-reload
80- systemctl restart containerd
80+ systemctl restart kubelet
8181----
8282
8383=== `ssm` proxy configuration
0 commit comments