GithubHelp home page GithubHelp logo

Comments (4)

aaronlevy avatar aaronlevy commented on July 29, 2024

Can you provide a little more detail on the issue you are having?

In general, the UI application should know how to connect to the kubernetes API (via service accounts). And when you are accessing the UI it is done by proxying your request to the pod running the UI (via a kubernetes service).

Maybe as a start, what happens when you go to https://<kubernetes-master>/ui ?

from coreos-kubernetes.

asandoval avatar asandoval commented on July 29, 2024

I'm experiencing the same issue.

$ curl https://172.17.4.99/ui -k                                                                                                                            
Unauthorized

Very interested in how to hit the https:// endpoints.

from coreos-kubernetes.

aaronlevy avatar aaronlevy commented on July 29, 2024

The easiest way is to make use of kubectl proxy. This will open a local proxy to your kubernetes cluster by using the current context in your kubeconfig. As long as your kubeconfig is configured to properly connect to your cluster, the proxy command will take care of authenticating the connection using client certs.

See: http://kubernetes.io/v1.0/docs/user-guide/connecting-to-applications-proxy.html

To use curl directly you will need to specify a client cert to authorize the request. The exact flags can vary depending on platform, but from OSX 10.10 you will need to convert your admin cert to pk12 first:

From the single-node directory:

openssl pkcs12 -export -in ./ssl/admin.pem -inkey ./ssl/admin-key.pem -out ./ssl/admin.p12

Then use the cert in the curl request:

curl https://172.17.4.99/v1/api/nodes --cacert ./ssl/ca.pem --cert ./ssl/admin.p12:PASS

from coreos-kubernetes.

aaronlevy avatar aaronlevy commented on July 29, 2024

Going to close this issue, but if you are still having difficulty, please re-open

from coreos-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.