no_proxy not working on K8S - Docker Image - YAML

8/3/2021

I am trying to connect to an external service on an application within my cluster. I am setting the http_proxy as below:

 - name: https_proxy
      value: http://<PROXY>:8080

Then, as my application connects to Vault I started getting errors like of Access Denied when I try to make the call to the IP 10.100.10.66:8200 which is my Vault Service

So I add the no_proxy such as below:

 - name: no_proxy
      value: 10.100.10.66,127.0.0.1,localhost

But seem that it does not work at all.

I am running on K8S 1.5 and JDK 1.8 (on the docker image)

Any clue?

-- Jos&#233; Mendes
kubernetes
proxy

0 Answers