Kubernetes kuberadm not using proxy

3/30/2019

I am using kubeadm with proxychain like this:

 proxychains4 kubeadm init --ignore-preflight-errors=all 

But when it wants to pull image from k8s.gcr.io/coredns, it was not using the proxy and connect directly to k8s.gcr.io

What should I do to force kubeadm to use a proxy for pulling images

-- Masoud
centos
docker
kubernetes
linux
proxy

1 Answer

3/30/2019

Can you set https_proxy and http_proxy environment variables and try.

-- P Ekambaram
Source: StackOverflow