google-container access the ui panel

7/5/2017

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,

  • try to access http(s)://container-endpoint-ip:8001/ui
  • literally http://localhost:8001/ui

None of those work.

-- Ced
gcloud
google-compute-engine
google-kubernetes-engine
kubernetes

3 Answers

7/25/2017

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.

-- Piotr Bryk
Source: StackOverflow

7/6/2017

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..

-- Ced
Source: StackOverflow

7/5/2017

Try running kubectl proxy and open http://localhost:8001/ui.

-- Javier Castellanos
Source: StackOverflow