I have a private kubernetes cluster with private ip. In order to access it i have set up a bastion host with squid proxy. It looks like this:
My host -> bastion -> private cloud
Regular kubectl commands work throw proxy as expected:
$ HTTPS_PROXY=socks5://127.0.0.1:1080 kubectl get pods
No resources found.
The problem is when trying to ssh to a pod:
$ HTTPS_PROXY=socks5://127.0.0.1:1080 kubectl exec -it "some-pod" -- /bin/bash
error: error sending request: Post https://<master-ip>/api/v1/namespaces/ns/pods/some-pod/exec?command=%2Fbin%2Fbash&container=xxx&container=xxx&stdin=true&stdout=true&tty=true: EOF
What am i doing wrong?