Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

Builds fail with `java.lang.InterruptedException` at random steps and the controller log shows `Pod ... was terminated: Reason: Evicted, The node was low on resource: ephemeral-storage`

IntermediateTroubleshootingPlugins, JCasC & Kubernetes agents
Answer

Likely causes → The workspace (emptyDir) and container layers fill the node's ephemeral storage; Kubelet evicts pods.

Diagnose → kubectl get events for evictions; node disk usage.

Fix → Set resources.requests/limits.ephemeral-storage on build containers, use a PVC or larger node disks for heavy builds, clean caches during the build.

Prevent → Size node disks for build workloads; monitor ephemeral storage.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents