Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<h3>Unauthorised</h3> #7

Open
DazWilkin opened this issue Jan 21, 2016 · 6 comments
Open

<h3>Unauthorised</h3> #7

DazWilkin opened this issue Jan 21, 2016 · 6 comments

Comments

@DazWilkin
Copy link
Contributor

The instructions are deficient and the code appears broken. Without the www-prefix below, we could not get this to work and instead received "Unauthorised"

I'm running against GKE and have:

kubectl version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3",    GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.4", GitCommit:"a5949fea3a91d6a50f40a5684e05879080a4c61d", GitTreeState:"clean"}

We worked out that minimally, the command should be:

kubectl proxy --www=/path/to/gcp-live-k8s-visualizer/  --www-prefix=/my-mountpoint/ --api-prefix=/api/

And then, 127.0.0.1:8001/my-mountpoint/

Works!

@tpetrosy
Copy link

tpetrosy commented Apr 8, 2016

I have same issue.

@michbonello
Copy link

same issue + 1

@Steiniche
Copy link

I hit the same issue.

@hrandika
Copy link

May be we can visit the 27.0.0.1:8001/my-mountpoint/static ?

@kamilgregorczyk
Copy link

kamilgregorczyk commented Nov 5, 2017

Just do

kubectl proxy --www ./gcp-live-k8s-visualizer --accept-hosts="^.*$" --address="0.0.0.0" --port=9999
and then you can call it by http://MASTER_IP:9999/static/

This issue can be closed as it's related to the kubectl proxy itself, not to visualizer.

@sshindeBB
Copy link

@kamilgregorczyk I tried the same but it shows another eeror i.t
`{
"kind": "Status",
"apiVersion": "v1",
"metadata": {

},
"status": "Failure",
"message": "no endpoints available for service "kubernetes-dashboard"",
"reason": "ServiceUnavailable",
"code": 503
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants