Interview Prep/Jenkins/Architecture, executors & JENKINS_HOME

What does the `jnlp` container do in a Kubernetes agent pod?

IntermediateConceptArchitecture, executors & JENKINS_HOME
Answer

It runs jenkins/inbound-agent, which starts agent.jar and connects back to the controller. It is the remoting endpoint for the pod; other containers (maven, node, kaniko) are just tools that share the workspace volume. Steps run in jnlp by default unless you wrap them in container('name') or set defaultContainer. If the jnlp container cannot reach the controller URL, the pod never becomes an agent and the build waits with Waiting for agent to connect.

All Jenkins questions Roadmap: Jenkins

More on Architecture, executors & JENKINS_HOME