Jenkins Controller vs Agent Architecture

Jenkins Controller manages the CI/CD system (job scheduling, pipeline orchestration, credentials, plugins, user access). Jenkins Agents execute the actual build work (build, test, scan, deploy) on separate machines. Controller assigns work; Agents run it. Scales by adding more agents.

Overview

Controller and agent

Jenkins uses a Controller-Agent (formerly Master-Slave) architecture to distribute work across machines. The controller assigns, the agent runs. Understanding this split is foundational to designing scalable Jenkins deployments.

In a typical setup, developers reach the controller through its web UI and REST API. The controller holds the configuration, the schedule, the credentials and the plugins, and it hands each job to an agent whose label matches the job. A job that asks for the label linux goes to a build agent with a JDK and Maven or Gradle. A job that asks for docker goes to a Docker agent that builds and pushes images. A job that asks for deploy goes to a deploy agent that carries kubectl, helm and a cloud CLI.

Key concepts

  • Controller (formerly Master)
  • Agent (formerly Slave)
  • Executor
  • Agent label
  • Kubernetes plugin (ephemeral agents)
  • JNLP port (50000)

Interview questions

  • Explain Jenkins Controller-Agent architecture and why it matters for scalability.
  • How do you set up Jenkins with Kubernetes for ephemeral agents?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio