Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containerd is not working behind a proxy #688

Closed
aojea opened this issue Jul 5, 2019 · 2 comments

Comments

@aojea
Copy link
Contributor

commented Jul 5, 2019

What happened:

Containerd is not able to pull images if is working behind a proxy

What you expected to happen:

containerd should work behind a proxy

How to reproduce it (as minimally and precisely as possible):

https://kubernetes.slack.com/archives/CEKK1KTN2/p1562335808184900

Anything else we need to know?:

The problem is that we removed /etc/systemd/system/containerd.service.d/http-proxy.conf

when we merged this #628

Environment:

  • kind version: (use kind version): > 0.4.0
  • Kubernetes version: (use kubectl version):
  • Docker version: (use docker info):
  • OS (e.g. from /etc/os-release):

@aojea aojea added the kind/bug label Jul 5, 2019

@aojea

This comment has been minimized.

Copy link
Contributor Author

commented Jul 5, 2019

as a workaround you can execute in each node

cat <<EOF >/etc/systemd/system/containerd.service.d/http-proxy.conf    
[Service]    
Environment="HTTP_PROXY=${HTTP_PROXY:-}"    
Environment="HTTPS_PROXY=${HTTPS_PROXY:-}"    
Environment="NO_PROXY=${NO_PROXY:-localhost},${LOCAL_NETWORK}"    
EOF

reload the systemd configuration: systemctl daemon-reload

and restart containerd: systemctl restart containerd

@BenTheElder should we recover the images/base/entrypoint ?

@aojea

This comment has been minimized.

Copy link
Contributor Author

commented Jul 10, 2019

Fixed by #694

@aojea aojea closed this Jul 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.