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.
More on Architecture, executors & JENKINS_HOME
What are the main components of a Jenkins installation?BeginnerWhat is the difference between a node, an agent and an executor?BeginnerWhy should the built-in node have 0 executors?BeginnerWhat is `JENKINS_HOME` and what are its most important contents?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?Intermediate