How to use - HTTP Proxy to Access the Kubernetes API with rancher 2.0?

We wanted to know if we can use HTTP proxy to access kubernetes API with rancher 2.0 or 1.6?

https://kubernetes.io/docs/tasks/access-kubernetes-api/http-proxy-access-api/

Please help !

As Rancher can manage any Kubernetes cluster, the proxy needs to know to what cluster it needs to go so that needs to be included in the URL:

curl http://localhost:8001/k8s/clusters/clusterid/api/
1 Like