A http proxy that allows you to access <service_name>.<namespace>.svc.cluster.local
addresses via kube-apiserver
.
kubectl
- A kubernetes configuration with permission to run
kubectl proxy
It is not possible send the Authorization
header through the proxy because kubectl proxy
removes the Authorzation
header. See kubernetes/kubernetes#38775
The proxy code is based on https://github.com/pouriya73/HTTP-Proxy-server---GOlang