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

Cannot view api via browser - Unauthorized #71

Closed
gainax1 opened this issue Sep 28, 2016 · 6 comments
Closed

Cannot view api via browser - Unauthorized #71

gainax1 opened this issue Sep 28, 2016 · 6 comments

Comments

@gainax1
Copy link

gainax1 commented Sep 28, 2016

Having gone through the tutorial step by step, when I list the cluster info kubectl cluster-info, I see the following:

Kubernetes master is running at https://kubernetes-xxxxxxxx.eu-west-1.elb.amazonaws.com:6443

Going to that URL, gives me a 401 Unauthorized.

I'm guessing it should either redirect me to the api list, or, ask for basic auth user/password?

@dylanmei
Copy link

dylanmei commented Sep 28, 2016

Once everything is running, I have been able to run kubectl proxy on my local machine and then I could visit the dashboard via localhost:8001 in my browser.

kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
kubectl proxy

I believe this is some background into why it isn't very friendly out of the box: kubernetes/kubernetes#7307

@gainax1
Copy link
Author

gainax1 commented Sep 29, 2016

@dylanmei, Thanks for that. Unfortunately, this returns the following:

<h3>Unauthorized</h3>

EDIT:

Scrap that, seems to work fine!

@nelsonenzo
Copy link

nelsonenzo commented Sep 30, 2016

I also get <h3>Unauthorized</h3>

@gregorskii
Copy link

I think this is actually due to the URL being used not being localhost. Use kubectl proxy to set it to a localhost address.

@nelsonenzo
Copy link

nelsonenzo commented Oct 1, 2016

had to append "/ui", then it worked.
in my terminal:

kubectl proxy
Starting to serve on 127.0.0.1:8001

in my browser, navigated to.
localhost:8001/ui

the "/ui" is important.

@kelseyhightower
Copy link
Owner

Kube proxy is the way to go and before you can use the dashboard you'll have to deploy the dashboard add-on. This guide only provides instructions for the DNS add-on so you'll have to figure out how to install the dashboard the hard way.

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

5 participants