Interview Prep/Jenkins/Plugins, JCasC & Jenkins on Kubernetes

What does the Kubernetes plugin need to create agent pods?

AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
  1. A Kubernetes cloud configuration: API server URL (blank when the controller runs in-cluster), namespace, credentials (in-cluster service account by default), the Jenkins URL agents use to connect back, and either WebSocket mode or a tunnel to port 50000.
  2. RBAC for the controller's service account in the agent namespace: pods (create, delete, get, list, watch), pods/exec (create, get), pods/log (get), events (get, list, watch), and persistentvolumeclaims if used.
  3. Pod templates, defined in the cloud config or inline in pipelines.
All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes