Try setting the proxy env vars as system wide defaults. Docs for this have just been proposed, but not merged yet, you can view them here:
https://github.com/endocode/coreos-docs/blob/c902eeada11582280311285f49dfe8de22a16aee/os/using-environment-variables-in-systemd-units.md#system-wide-environment-variables <https://github.com/endocode/coreos-docs/blob/c902eeada11582280311285f49dfe8de22a16aee/os/using-environment-variables-in-systemd-units.md#system-wide-environment-variables> Hopefully that will get your proxy set up working. - Rob > On Aug 19, 2016, at 10:34 AM, Gokhan Sevik <[email protected]> wrote: > > Hi Everyone, > > I am behind a proxy server and following the "Kubernetes Installation with > Vagrant & CoreOS" steps listed here: > https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant.html > <https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant.html> > > After finalizing the install, when I run > $ kubectl get nodes > I get the error. > > Unable to connect to the server: Service Unavailable > > e1, c1, and w1 are up and I can issue $vagrant ssh each of them. > > when I check the w1, I have seen docker service was not running with the > error listed below. > > > ------------------------------------------------------------------------------------------------------------------------------- > -- Unit docker.service has failed. > -- > -- The result is dependency. > Aug 19 04:09:25 w1 systemd[1]: docker.service: Job docker.service/start > failed with result 'dependency'. > Aug 19 04:09:25 w1 systemd[1]: flanneld.service: Unit entered failed state. > Aug 19 04:09:25 w1 systemd[1]: flanneld.service: Failed with result > 'exit-code'. > Aug 19 04:09:30 w1 systemd[1]: flanneld.service: Service hold-off time over, > scheduling restart. > Aug 19 04:09:30 w1 systemd[1]: Stopped Network fabric for containers. > -- Subject: Unit flanneld.service has finished shutting down > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > <http://lists.freedesktop.org/mailman/listinfo/systemd-devel> > -- > -- Unit flanneld.service has finished shutting down. > Aug 19 04:09:30 w1 systemd[1]: Starting Network fabric for containers... > -- Subject: Unit flanneld.service has begun start-up > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > <http://lists.freedesktop.org/mailman/listinfo/systemd-devel> > -- > -- Unit flanneld.service has begun starting up. > Aug 19 04:09:30 w1 rkt[6888]: image: using image from file > /usr/lib/rkt/stage1-images/stage1-fly.aci > Aug 19 04:09:31 w1 rkt[6888]: image: searching for app image > quay.io/coreos/flannel <http://quay.io/coreos/flannel> > Aug 19 04:09:31 w1 rkt[6888]: run: discovery failed > Aug 19 04:09:31 w1 systemd[1]: flanneld.service: Main process exited, > code=exited, status=1/FAILURE > Aug 19 04:09:31 w1 systemd[1]: Failed to start Network fabric for containers. > -- Subject: Unit flanneld.service has failed > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > <http://lists.freedesktop.org/mailman/listinfo/systemd-devel> > -- > -- Unit flanneld.service has failed. > -- > -- The result is failed. > Aug 19 04:09:31 w1 systemd[1]: flanneld.service: Unit entered failed state. > Aug 19 04:09:31 w1 systemd[1]: flanneld.service: Failed with result > 'exit-code'. > > ------------------------------------------------------------------------------------------------------------------------------- > > I am guessing that problem is because of I am behind the proxy. Before > running the install steps I issue the commands > > $export "HTTP_PROXY=http://http-proxy.xxxxxx.com:8080 > <http://http-proxy.xxxxxx.com:8080/>" > $export "HTTPS_PROXY=http://http-proxy.xxxxxx.com:8080 > <http://http-proxy.xxxxxx.com:8080/>" > $export "http_proxy=http://http-proxy.xxxxxx.com:8080 > <http://http-proxy.xxxxxx.com:8080/>" > $export "https_proxy=http://http-proxy.xxxxxx.com:8080 > <http://http-proxy.xxxxxx.com:8080/>" > > > Do you know if this is enough for the installation behind proxy or do I need > to add proxy settings to somewhere else. > > Thank you in advance, > Turgos >
