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 →
- Check pod events:
kubectl -n jenkins-agents describe pod <pod>forPulling imageduration andFailedScheduling. - Use smaller, pinned images and pre-pull them on build nodes (a DaemonSet that pulls them, or node image baking).
- Keep a small warm buffer: overprovisioning pause pods with low priority so the autoscaler keeps spare nodes.
- Set
imagePullPolicy: IfNotPresentwith immutable tags. - Consider
idleMinutesfor 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.
More on Platform: plugins, JCasC & Kubernetes agents
You inherit a controller with 230 plugins, half unused, on a version two LTS lines behind. Plan the cleanup and upgrade.AdvancedAn admin changes a cloud setting in the UI, and it reverts after the next controller restart. Developers are confused. What is your policy?BeginnerYou must stand up a new Jenkins controller for a team in under an hour, identical to the existing ones. How?IntermediateDevelopers need Docker image builds in Kubernetes agents, but the cluster runs containerd and security forbids privileged pods. What do you choose?AdvancedThe controller needs to provision agents in three Kubernetes clusters in different regions. How do you configure it?AdvancedYou want to roll out a new version of the `jnlp` inbound-agent image to all pod templates. How?Beginner