What does the Kubernetes plugin need to create agent pods?
AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
- 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.
- 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), andpersistentvolumeclaimsif used. - Pod templates, defined in the cloud config or inline in pipelines.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced