Details
-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: kubernetes-plugin
-
Labels:None
-
Similar Issues:
Description
It's unclear to me why the Kubernetes plugin requires so much configuration. In general, Jenkins should be able to talk to Kubernetes with a KUBECONFIG and nothing else. Yet, when I give it a KUBECONFIG via a Jenkins secret, it still seems to connect to 'kubernetes.svc.default' which seems incorrect to me.
(Also, I didn't want to open a new bug for this, but why does this setup require the Jenkins instance to have port 5000 open? That's an operational burden for me...)
Are you opposed to allowing the user to specify kubeconfig creds? This is how credentials are distributed for every single cluster I've ever used. Most or all deployment tools output a kubeconfig, AKS/GKE both have `get-credentials` commands that output kubeconfig files, etc.
It looks like the interface might have to be extended, or another added that the kubernetes-plugin could then probe/utilize...
I think it would be a major UX win if the user could upload a kubeconfig file and be good to. Extracting the URL, CA cert, etc is just throwaway work. Maybe this is a result of how the kubernetes client works?