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

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 →

  1. A pod template labelled gpu with nodeSelector for the GPU node pool, tolerations for its taint, and resources.limits: nvidia.com/gpu: 1.
  2. Cluster autoscaler scales the GPU pool from zero when a pod is pending.
  3. Restrict the template to the ML folder (separate cloud with folder restriction or Job Restrictions).
  4. 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.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents