Man877887
Man877887

Reputation: 1

Nomad with squid proxy

I am trying to setup my nomad clients to go through a squid proxy server for every HTTP/HTTPS communications going outside of my network. To do that I disabled communications with the port 80 and 443 on the public interface.

Here is my problem : When I do a docker pull or any kind of HTTP calls on the system it goes through the squid proxy and it works.

When nomad does any king of HTTP call, for example trying a docker pull or contacting hashicorp to verify updates it does not work.

I am using the files /etc/profile (export HTTP_PROXY) and /etc/environment to deploy the HTTP_PROXY and HTTPS_PROXY variables to all users and shells on my system. I am also using the docker daemon.json so that docker uses the squid proxy. I am also using an EnvironmentFile directive pointing to a file with the variables in the nomad service configuration to setup the environment variables specifically for nomad.

I expected the nomad service to use the squid proxy but it is not the case.

Is there a specific configuration or am I missing something ?

Thanks

Upvotes: -1

Views: 17

Answers (0)

Related Questions