Provide connect command for agent cluster
Release notes
Would you like to connect to a Kubernetes cluster from your local terminal or using one of the desktop Kubernetes GUI tools? GitLab allows you to connect to a terminal via the user access feature of the agent for Kubernetes. Until now, figuring out the commands required browsing the documentation and losing the actual context you are in. Now, GitLab provides the connect command inside the GitLab UI, and even supports you to configure user access if needed.
User problem
I often want to access some agent cluster from my local machine and often use glab
to do so.
It would be great if the GitLab Agent UI and/or Environment UI would give a copy&paste glab command to access a particular agent cluster.
Cloud providers do the same, for example here is how the worfklow in GCP looks like:
clicking the Connect
button opens a modal with the command that can be copy&pasted:
This commands adds a kube config entry and switches the default context to it, so that a subsequent kubectl
command (or whatever command) connects to that cluster.
It would be great if the GitLab UI offered something similar. I think a nice first iteration could be to have button here:
or here somewhere:
I'm sure UX will have some better ideas