Interview Prep/CI/CD/Jenkins Build and Agent Failures

`The node ... is offline` for ephemeral Kubernetes agents; pods stay `Pending`.

IntermediateTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → No cluster capacity; unsatisfiable resource requests; node selector/taint mismatch; image pull failure.

Diagnose →

kubectl get pods -n jenkins
kubectl describe pod <agent> -n jenkins

Read the Events section.

Fix → Add nodes or autoscale; fix requests, tolerations or image.

Prevent → Cluster autoscaler plus a dedicated node pool for builds.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures