Skip to content

Pinniped generate kubeconfig - multi clusters use cases #1508

Answered by cfryanr
HamzaZo asked this question in Q&A
Discussion options

You must be logged in to vote

In that case, how pinniped will be able to read the configmap to generate it's own kubeconfig ?

In that case, the open source pinniped CLI would not know how to use that ConfigMap to generate a kubeconfig. In the TKG example, they use a custom command in their own CLI to generate the kubeconfig file (by reading the ConfigMap).

You could design lots of similar solutions. For example, as the cluster admin, you could build some simple automation that uses the Pinniped CLI to generate a kubeconfig and then write it as a ConfigMap (or Secret, or whatever) in the kube-public namespace. Clients could use kubectl to read the ConfigMap to download the already-assembled kubeconfig from inside the…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@HamzaZo
Comment options

@cfryanr
Comment options

Answer selected by HamzaZo
@HamzaZo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants