Connect via container proxy in EKS pod

10/4/2021

I currently have a docker container that runs a squid proxy (auths to proxy service) on http://localhost:3128. Running this locally in the container works well: curl api.ipify.org -x http://localhost:3128

squid.conf (for reference):

http_access allow all
http_port 3128
cache_peer proxyaddrr.com parent 7000 0 no-query default login=proxy-user:proxy-password
never_direct allow all

However, when I run this container as a pod on EKS (triggered via Argo workflows, image pulled from ECR) the connection will just timeout. Connection on pod is still fine if I don't specify the proxy in the request: curl api.ipify.org

Is there something Kubernetes/networking related I'm missing here? My K8s knowledge is very limited, so if anyone can point me in the right direction to resolve this, I'd appreciate it.

-- Neil
amazon-eks
argo-workflows
docker
kubernetes
squid

0 Answers