Provisioning a controller in a different namespace than the operations center

2 minute read

By default, managed controllers are created in the same namespace as the operations center instance.

If you want to create a managed controller in a different namespace, you need to pre-populate the namespace with the appropriate resources.

  1. To prepare a namespace to install a managed controller, use the following example values.yaml file:

    OperationsCenter: Enabled: false Master: Enabled: true OperationsCenterNamespace: ci (1) Agents: Enabled: true
    1 Replace ci with the actual namespace where the operations center is installed. If the operations center is located in another cluster, set it to the same value as the current namespace and then create an operations center service account for authentication.
  2. Use the following example to perform the installation.

    export NAMESPACE=my-team (1) kubectl create namespace $NAMESPACE || true helm install ci-masters-$NAMESPACE cloudbees/cloudbees-core --namespace $NAMESPACE -f values.yaml
    1 Replace my-team with the actual namespace where the managed controllers will be created.

Controller provisioning configuration

To provision controllers in their own namespaces, each controller must use a specific sub-domain. For example, if the operations center domain is and the URL is, a controller dev1 should use the sub-domain or It is preferable to use if using wild card certificates for the domain

To configure each controller to use a specific sub-domain in the operations center, navigate to Manage Jenkins  Configure Controller Provisioning and under Kubernetes Cluster endpoints, set the Controller URL Pattern. For example, if the operations center domain is, the Controller URL Pattern should be https://**/.

Configure Controller Provisioning
Figure 1. Controller provisioning configuration

Provision controllers

The namespace for the controller resources can be configured as the default namespace for all managed controllers in the main operations center configuration screen with the namespace parameter.

The namespace can also specify a specific managed controller in the controller configuration screen with the namespace parameter.

Leave the namespace value empty to use the value defined by the Kubernetes endpoint.
In August 2020, the Jenkins project voted to replace the term master with controller. We have taken a pragmatic approach to cleaning these up, ensuring the least amount of downstream impact as possible. CloudBees is committed to ensuring a culture and environment of inclusiveness and acceptance - this includes ensuring the changes are not just cosmetic ones, but pervasive. As this change happens, please note that the term master has been replaced through the latest versions of the CloudBees documentation with controller (as in managed controller, client controller, team controller) except when still used in the UI or in code.