what is the proper proxy settings for docker and kubernetes
We always include the scheme in our environment variables.
/etc/profile.d/proxy.sh:
#!/bin/bashexport http_proxy=http://<proxy>:3128export https_proxy=$http_proxyexport no_proxy=169.254.169.254,localhost,127.0.0.1export HTTP_PROXY=$http_proxyexport HTTPS_PROXY=$https_proxyexport NO_PROXY=$no_proxy
/etc/systemd/system/docker.service.d/proxy.conf:
[Service]Environment="HTTPS_PROXY=https://<proxy>:3128/" "HTTP_PROXY=http://<proxy>:3128/"
we will add the proxy in both /etc/environment file and docker.service file
In /etc/environment
export http_proxy=http://10.169.33.81:8080/export https_proxy=http://10.169.33.81:8080/export no_proxy="127.0.0.1,localhost,(added all the worker node server ip)"export NO_PROXY=$no_proxy
In docker.service file
Environment="HTTP_PROXY=http://10.x.x.x:8080/"Environment="HTTPS_PROXY=http://10.x.x.x:8080/"Environment="NO_PROXY=127.0.0.1,0.0.0.0"