Kubernetes Dashboard access using config file Not enough data to create auth info structure.

前端 未结 8 1588
暖寄归人
暖寄归人 2020-12-08 04:14

I am trying to access the kubernetes Dashboard using the config file. From the authentication when I select config file its giving ‘Not enough data to create auth info

8条回答
  •  孤街浪徒
    2020-12-08 04:42

    If you want to see dashboard in action before going through a major investment setting up security, here is the way I got things going quickly. I did this with v2.0.0-rc7:

    • Install with the alternative method, which just sets things up a little less securely to start with.
    • The ClusterRoleRef that installs with this method needs to be replaced with this one. (You need to delete the existing one first with kubectl delete ..., then add it.)
    • The second paragraph here documents the "skip method". Update your deployment to get that set up.

    Now you can go to the web page and click "skip". Voila! All your keys are exposed with no password. Pray nobody gets ahold of that link!

    But wait, you say it's still too hard to get in? If you have a load balancer installed, here's two additional steps:

    • kubectl -n kubernetes-dashboard edit service kubernetes-dashboard will allow you to change the service spec to type: LoadBalancer.
    • If your load balancer is set up properly, kubectl -n kubernetes-dashboard describe service kubernetes-dashboard will now show you the IP address that it has kindly put your insecure dashboard on.

    Now you have an insecure port with no password to easily browse your crown jewels. Enjoy!

提交回复
热议问题