-
In the Pinniped documentation, it is mentioned that "For each cluster, use pinniped get kubeconfig to generate the new kubeconfig file for that cluster." However, since we are using the cluster as a service model for our clients, we want to provide a way for users to generate their own Pinniped kubeconfig without requiring admin-level access. One approach could be to use the following command:
By using this command, users can specify the necessary parameters for Pinniped to generate the kubeconfig file. All they need is the Pinniped CLI, and they can generate the kubeconfig file themselves. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for the suggestion @HamzaZo. It would be great for Pinniped to have a built-in solution for self-service kubeconfig generation, but unfortunately we haven't solved that problem yet. One idea that we had was to make an API on the Pinniped Supervisor for this (see #751). Are you using the Supervisor for these clusters? In the meantime, as a service provider you can create and distribute the Pinniped-compatible kubeconfig files however you see fit. You don't even need to use the For example, VMware TKG's integration of Pinniped incudes a custom controller which automatically writes a ConfigMap to the |
Beta Was this translation helpful? Give feedback.
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…