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 →
- Evaluate Kaniko (runs as root inside the container but not privileged) or BuildKit rootless (needs
seccomp/apparmorunconfined but not privileged). - Run builders on a dedicated tainted node pool with no access to production networks.
- Push to the registry with short-lived credentials; use a registry cache repo for layer caching.
- 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.
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?AdvancedThe controller needs to provision agents in three Kubernetes clusters in different regions. How do you configure it?AdvancedYou want to roll out a new version of the `jnlp` inbound-agent image to all pod templates. How?Beginner