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

Developers need Docker image builds in Kubernetes agents, but the cluster runs containerd and security forbids privileged pods. What do you choose?

AdvancedScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → No Docker socket, no privileged containers.

What I'd do →

  1. Evaluate Kaniko (runs as root inside the container but not privileged) or BuildKit rootless (needs seccomp/apparmor unconfined but not privileged).
  2. Run builders on a dedicated tainted node pool with no access to production networks.
  3. Push to the registry with short-lived credentials; use a registry cache repo for layer caching.
  4. If policy forbids root entirely, use a remote BuildKit service run by the platform team or a managed builder.

Why → Daemonless builders avoid the host socket and fit containerd clusters, with isolation compensating for their remaining privileges.

Interview tip → Mention Kaniko's archived upstream status and that you would track a maintained fork or BuildKit.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents