Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Support for client-side certificates #72

Closed
jonmoter opened this issue Dec 28, 2016 · 6 comments
Closed

Support for client-side certificates #72

jonmoter opened this issue Dec 28, 2016 · 6 comments
Assignees
Milestone

Comments

@jonmoter
Copy link

In our Kubernetes clusters, we use client-side certs for authentication. I see that in the Readme it states:

Note that authentication via client-certificates is currently not supported!

It would be great if that could be added.

In general, it would be great if the app could read a kubeconfig file. Then you could specify a comma-separated lists of contexts to connect to via command-line arg or environment variable.

@hjacobs
Copy link
Owner

hjacobs commented Dec 28, 2016

@jonmoter thanks for your interest in this tool!

I guess client-side certs is something we need to support.

FYI: I generally want to support "looking up" clusters in some "Cluster Registry", see #73

@hjacobs
Copy link
Owner

hjacobs commented Dec 28, 2016

@jonmoter simple workaround for now: just use kubectl proxy, e.g. as a sidecar as in https://github.com/hjacobs/kube-ops-view/blob/master/deploy/deployment.yaml

@jonmoter
Copy link
Author

Have you tried out using the kubernetes python client? It looks like if you use that library, you could call:

config.load_kube_config()

and that would read in the kubeconfig file, certs, etc.

@hjacobs
Copy link
Owner

hjacobs commented Dec 28, 2016

@jonmoter thanks, will check it out..

@hjacobs
Copy link
Owner

hjacobs commented Jan 15, 2017

@jonmoter client-side certs are now supported when using the --kubeconfig-path flag, see https://kubernetes-operational-view.readthedocs.io/en/latest/multiple-clusters.html

Tested with Minikube (note the extra volume mount for ~/.minikube to get the SSL certs into the Docker container):

$ docker run -it --net=host -v ~/.kube:/kube -v ~/.minikube:$HOME/.minikube hjacobs/kube-ops-view:0.2.0 --kubeconfig-path=/kube/config --kubeconfig-contexts=minikube

@hjacobs hjacobs closed this as completed Jan 15, 2017
@jonmoter
Copy link
Author

Awesome, thank you!

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

No branches or pull requests

2 participants