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

Builds wait 2–3 minutes before starting because new agent pods are slow to schedule. How do you speed up agent startup?

AdvancedScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → Time goes into node scale-up, image pulls and the agent connecting.

What I'd do →

  1. Check pod events: kubectl -n jenkins-agents describe pod <pod> for Pulling image duration and FailedScheduling.
  2. Use smaller, pinned images and pre-pull them on build nodes (a DaemonSet that pulls them, or node image baking).
  3. Keep a small warm buffer: overprovisioning pause pods with low priority so the autoscaler keeps spare nodes.
  4. Set imagePullPolicy: IfNotPresent with immutable tags.
  5. Consider idleMinutes for very frequent short jobs.

Why → Pod startup is mostly image pulls and node provisioning, both fixable at the cluster level.

Interview tip → Quote the breakdown: scheduling, pull, container start, agent connect.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents