Interview Prep/Jenkins/Platform: plugins, JCasC & Kubernetes agents

The controller needs to provision agents in three Kubernetes clusters in different regions. How do you configure it?

AdvancedScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → Multiple clouds in the kubernetes plugin, external API access.

What I'd do →

  1. Define three kubernetes clouds in JCasC, each with serverUrl, serverCertificate, namespace and a credential (service account token or kubeconfig as a Secret file credential).
  2. Set jenkinsUrl to the public HTTPS URL and webSocket: true so remote pods connect through the ingress.
  3. Give each cloud distinct pod template labels (k8s-eu, k8s-us) and set capacity limits.
  4. Create RBAC in each cluster for the Jenkins service account in the agents namespace.

Why → WebSocket over HTTPS avoids exposing TCP 50000 across regions.

Interview tip → Mention that one controller across regions still has one point of failure; consider regional controllers.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents