A team needs GPU agents only for model training jobs, which run twice a week. How do you provide them?
IntermediateScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer
Situation read → Expensive, rare resource; must not idle.
What I'd do →
- A pod template labelled
gpuwithnodeSelectorfor the GPU node pool,tolerationsfor its taint, andresources.limits: nvidia.com/gpu: 1. - Cluster autoscaler scales the GPU pool from zero when a pod is pending.
- Restrict the template to the ML folder (separate cloud with folder restriction or Job Restrictions).
- Set a pipeline timeout so jobs do not hold GPUs indefinitely.
Why → Ephemeral pods on scale-to-zero nodes mean GPUs cost money only during training.
Interview tip → Mention instanceCap to limit concurrent GPU pods.
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?IntermediateBuilds wait 2–3 minutes before starting because new agent pods are slow to schedule. How do you speed up agent startup?AdvancedDevelopers 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?Advanced