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

Unable to access kubernetes UI from browser #2

Closed
likku3 opened this issue May 11, 2016 · 8 comments
Closed

Unable to access kubernetes UI from browser #2

likku3 opened this issue May 11, 2016 · 8 comments

Comments

@likku3
Copy link

likku3 commented May 11, 2016

Hi Team,

I have followed all the steps mentioned and able to create k8s cluster .Till here everything is fine when i am trying to access the master with the aws Elastic Load Balancing url I am getting certificate error(NET::ERR_CERT_AUTHORITY_INVALID) even after ignoring it displaying me as "Unauthorized".It would be great if some hints are given.

Thanks in advance.

@gyulavoros
Copy link
Member

How do you try to access the cluster? kubectl gives you the error?

@likku3
Copy link
Author

likku3 commented May 12, 2016

Through Kubectl it's working like a charm but when trying to access from browser i am getting the error.

@gyulavoros
Copy link
Member

Note, that the current setup only deploys SkyDNS as a cluster add-on, Dashboard, Monitoring, Registry and other add-ons are up to you to install. So there is not any "component" that you should be able to talk to via HTTP (browser). Kubernetes has a REST API, but that is protected by SSL and your browser doesn't set up to present the certificate, that's why you got the error, I guess. What do you want to achieve via browser?

@likku3
Copy link
Author

likku3 commented May 12, 2016

I totally agree to your points that to access kubernetes UI we need dashboard add on. In required to access the below modules through browser.

Example url : https://awsdns.com/api
"/api",
"/api/v1",
"/apis",
"/apis/autoscaling",
"/apis/autoscaling/v1",
"/apis/batch",
"/apis/batch/v1",
"/apis/extensions",
"/apis/extensions/v1beta1",
"/healthz",
"/healthz/ping",
"/logs/",
"/metrics",
"/resetMetrics",
"/swagger-ui/",
"/swaggerapi/",
"/ui/",
"/version"

and I suspect the same that my browser is not accepting or validating the certificate.Is there any way to over come this because in future might require to access the kubernetes API through browser.

@gyulavoros
Copy link
Member

There are a few related issues in the kubernetes/dashboard repo:

kubernetes/dashboard#574
kubernetes/dashboard#374

According to these, you should be able to access the REST API via curl like:
curl --cacert <cert> <url>

@likku3
Copy link
Author

likku3 commented May 14, 2016

but still unable to access through curl and getting the message as Unauthorised.I think it's related to Openssl CA error because it's displaying as bad signature when trying to access from chrome.

@gyulavoros
Copy link
Member

There is an alternative approach described in http://kubernetes.io/docs/user-guide/accessing-the-cluster/ that I've just tried and works fine. You can run kubectl in proxy mode and talk to localhost to access the apiserver.

$ kubectl proxy --port=8080
$ curl http://localhost:8080/api/
{
  "versions": [
    "v1"
  ]
}

@likku3
Copy link
Author

likku3 commented May 16, 2016

Kudos !!! gyulavoros .Thank you for the valuable information and your help,I am able to access now.

@likku3 likku3 closed this as completed May 16, 2016
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

2 participants