I am running Jenkins in Kuberntes using the k8s plugin (for some reason I cannot post links in the forum)
I have created some podTemplates and a few containers based on maven and gradle docker images.
I keep reading about the jenkins agent.jar that should be started from the agents (again I have a link to an official jenkins blog but I am not allowed to post links
But currently I just use gradle:jdk11 for my build agents and I don’t see that containing any agent.jar.
Is the agent.jar only relevant/needed when running jenkins controller/agents in a non-k8s environment?
The Kubernetes plugin allocates Jenkins agents in Kubernetes pods. Within these pods, there is always one special container jnlp that is running the Jenkins agent.
The container jnlp is used by the Kubernetes plugin to run the Jenkins agent.jar.
As far as I can tell, history more than anything. We’ve considered combining the agent repository, inbound agent repository, and ssh agent repository into a single repository. The jenkins/agent image is used as the basis for jenkins/inbound-agent. I believe it is also used as the basis for other images.