I'm trying to work with a Kubernetes dashboard on a newly set up AKS cluster with Kubernetes 1.9.9 deployed on Azure.
I run kubectl proxy
and open http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/#!/overview?namespace=default to look at the dashboard.
I get a message Unauthorized
. And almost all functionality is disabled.
When I google this problem most solutions seem to revolve around not going against anything but localhost
to reach the dashboard. But I am going against localhost
. Isn't kubectl proxy
supposed to give me an automatically authorized entry point?
az aks get-credentials
to retrieve credentials (it's an azure aks cluster). It seems that it adds bothtoken
andclient-certificate-data
,client-key-data
to ´~/.kube/config`. Also, I have no trouble at all accessing the cluster from command line. – worldsayshi