I'm following a course where the teacher connects to google container ui panel by accessing https://ip-of-container/ui
he is then asked for password and username.
In my case what I see is :
User "system:anonymous" cannot get at the cluster scope.: "No policy matched.\nUnknown user \"system:anonymous\""
This issue on github says this:
A better way to access the UI via the API is to run kubectl proxy and access http://localhost:8001/ui
I don't understand what he is trying to say. Is localhost a placeholder for the machine endpoint ip ? How could it connect to my localhost since I have no server running ?
I did run kubectl proxy
then,
http(s)://container-endpoint-ip:8001/ui
http://localhost:8001/ui
None of those work.
If you're on GKE you can access the UI for it on https://console.cloud.google.com/kubernetes/workload. It has similar features as the OSS UI and you can access it from any machine, not only localhost.
I was running the command on the website's console. That's why it made no sens to me that it said to connect to localhost
. Tbh it's ambiguous, I only used the console on the website so far and forgot I could do things directly on my local machine..
Try running kubectl proxy
and open http://localhost:8001/ui.