Kubelet through a proxy server (http_proxy) on CoreOS?

598 views
Skip to first unread message

John Mattson

unread,
Sep 13, 2016, 9:14:34 AM9/13/16
to CoreOS User
Has anyone been able to get kubelet working through a proxy on CoreOS?  If so, how?  We've tried setting http_proxy's in both the kubelet service and early-docker server and they just seem to be ignored.

Thanks!

Aleks Saul

unread,
Sep 13, 2016, 12:17:48 PM9/13/16
to CoreOS User
Hi John,

I've made it work at a customer environment behind corporate proxy.

CoreOS Kubelet wrapper runs kubelet thru rkt so apart from docker.service and early service changes to support docker pulls, you'll also need to write to '/etc/environment' file to set those variables; such as 

          http_proxy=http://172.16.1.11:3128
          https_proxy=http://172.16.1.11:3128
          no_proxy=172.16.1.11

for rkt.

- Aleks
Reply all
Reply to author
Forward
0 new messages