cloudbees-core
by CloudBees
Enterprise Continuous Integration with Jenkins
About this chart
cloudbees-core
CloudBees CI is the continuous integration platform architected for the enterprise. It provides:
- DevOps at scale
- Resilience and high availability
- Easy management
- Enterprise grade security
TL;DR;
$ helm repo add cloudbees https://charts.cloudbees.com/public/cloudbees
$ helm install <release-name> cloudbees/cloudbees-core
Introduction
This chart bootstraps a CloudBees CI deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.32 or higher (for OpenShift: 4.19 or higher)
- Helm 3.5.0 or higher
- A supported Ingress Controller must be deployed
Requirements
Kubernetes: >= 1.32.0-0
Installing the Chart
Default installation
This installs the chart with the release name cloudbees-core and hostname cloudbees-core.example.com:
$ helm install cloudbees-core cloudbees/cloudbees-core \
--set OperationsCenter.HostName='cloudbees-core.example.com'
The command deploys CloudBees CI on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the cloudbees-core deployment:
$ helm delete cloudbees-core
NOTE: The current version of the CloudBees CI Helm Chart only manages the Operation Center. Users should manage Managed Controllers using Operation Center.
The helm delete command stops the CloudBees CI deployment than removes the OperationsCenter Center.
The release is still stored in the Helm database, but it will now have the status deleted.
If you wish to completely remove the release, use the following variation of the helm delete command.
$ helm delete cloudbees-core --purge
IMPORTANT: The
helm deletecommand does NOT remove the persistent volume claims as precaution against data loss. You will need to use thekubectl delete pvccommand to delete the persistent volume claims.
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
Please refer to the chart values.yaml to get the exhaustive list of values that can be customized.
The easiest way to consult it is through the command helm inspect values cloudbees/cloudbees-core.
Each property can override a default value with a value that specific to your Kubernetes cluster
You can provide this values using the --set flag on the Helm command line.
Helm also support merging values files together, so that you can create a YAML file for each environment.
Environment Property Value Files
Helm provides the option to use a custom property values file to override the default values set in the values.yaml file.
CloudBees recommends creating a custom properties file to override the default for your environments, instead of directly editing the included values.yaml file.
To use an environment property value file with Helm, use the -f option as shown in the following example:
helm install cloudbees-core --name cloudbees-core -f example-values.yaml
You can download the latest version of the example-values.yaml file from CloudBees Examples GitHub repository at https://github.com/cloudbees/cloudbees-examples/tree/master/helm-custom-value-file-examples.
Additional Documentation
CloudBees provides complete and more detailed installation and operation documentation on the CloudBees web site at https://docs.cloudbees.com/docs/cloudbees-ci/latest/kubernetes-install-guide/
Values
| Key | Type | Default | Description |
|---|---|---|---|
| Agents.Enabled | bool | true | Enable to create agent resources (service account, role) |
| Agents.ImagePullSecrets | string | nil | Name of image pull secret to pull private Docker images or an array of image pull secrets |
| Agents.SeparateNamespace.Create | bool | false | If true, the second namespace will be created when installing this chart. Otherwise, the existing namespace should be labeled with cloudbees.com/role: agents in order for network policies to work. |
| Agents.SeparateNamespace.Enabled | string | nil | If enabled, agents resources will be created in a separate namespace as well as bindings allowing masters to schedule them. |
| Agents.SeparateNamespace.Name | string | nil | Namespace where to create agents resources. Defaults to ${namespace}-builds where ${namespace} is the namespace where the chart is installed. |
| Agents.UseGitLfsImage | bool | false | Use the agent image variant that includes git-lfs. The default agent image does not include git-lfs so enable this only if your pipelines need it. |
| Agents.image.registry | string | nil | Container image registry for the agent |
| Agents.image.repository | string | "agent" | Container image repository for the agent |
| Agents.image.tag | string | nil | Container image tag for the agent |
| CascBundleService.annotations | object | {} | Additional annotations to put on the pod running the CasC Bundle Service |
| CascBundleService.autoversioning | bool | true | enable bundle autoversioning |
| CascBundleService.containerSecurityContext | object | {} | |
| CascBundleService.createConfig | bool | true | Whether the casc-bundle-service-config secret must be created by Helm or not. A common use case is to let the Secret be managed by an external secret tool. If this is set to false and the Secret is not created by other means, the service deployment will fail. |
| CascBundleService.credentialSecretsNamespace | string | nil | Namespace to manage the secrets to configure k8s based credentials. |
| CascBundleService.enabled | bool | false | Whether to enable the installation of the CasC Bundle Service for the cluster |
| CascBundleService.image.dockerImage | string | nil | full Docker image path for CasC Bundle Service |
| CascBundleService.image.pullPolicy | string | "IfNotPresent" | https://kubernetes.io/docs/concepts/containers/images/#updating-images |
| CascBundleService.image.registry | string | "us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution" | Docker registry for CasC Bundle Service |
| CascBundleService.image.repository | string | "cloudbees-casc-bundle-service" | Docker image repository for CasC Bundle Service |
| CascBundleService.image.tag | string | "816.6e190e66ac5b" | Docker image tag for CasC Bundle Service |
| CascBundleService.imagePullSecrets | string | nil | Name of image pull secret to pull private Docker images or an array of image pull secrets |
| CascBundleService.ingress.enabled | bool | true | whether or not we want to allow external access to the CasC Bundle Service. |
| CascBundleService.javaOpts | string | nil | Additional java options to pass to the CasC Bundle Service |
| CascBundleService.nodeSelector | object | {} | Node labels and tolerations for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector |
| CascBundleService.podSecurityContext | object | {} | |
| CascBundleService.pollingSchedule | string | "5m" | connectors polling schedule |
| CascBundleService.replicas | int | 2 | Number of replicas the CasC Bundle Service will start by default. |
| CascBundleService.resources.limits.cpu | string | "500m" | CPU limit to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu Set to 0 to disable CPU limits (no limit will be applied) |
| CascBundleService.resources.limits.memory | string | "512M" | Memory limit to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory |
| CascBundleService.resources.requests.cpu | string | "500m" | CPU request to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |
| CascBundleService.resources.requests.memory | string | "512M" | Memory request to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory |
| CascBundleService.serviceAccountName | string | "casc-bundle-service" | Name of the service account the CasC Bundle Service will run as |
| CascBundleService.ssh.strictHostKeyCheckingEnabled | bool | true | whether or not we check the host public key when retrieving via SSH. SSH known hosts public keys can be configured in the CasC Bundle Service configuration secret as explained in the documentation. ref: https://docs.cloudbees.com/docs/cloudbees-ci/latest/casc-controller/set-up-managed-controller-with-service#_add_connectors_to_the_casc_controller_bundle_service DISABLING THIS OPTION IS A SECURITY RISK |
| CascBundleService.tolerations | list | [] | Specify tolerations for the CasC Bundle Service pod. See documentation |
| Common.image.pullPolicy | string | nil | Used to override the default pull policy for all images |
| Common.image.registry | string | "us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution" | container registry for the images |
| Common.image.tag | string | "2.580.3.38678" | container image tag |
| Common.labels | object | {} | Additional labels to add to all resources |
| Gateway | object | {"Annotations":{},"Enabled":false,"Name":null,"Namespace":null,"SectionName":null} | Kubernetes Gateway API configuration for CloudBees CI networking. When Enabled: Creates HTTPRoute resources instead of Ingress resources. When not Enabled (default): Creates traditional Ingress resources for routing traffic Prerequisites when Gateway.Enabled=true: 1. Gateway API CRDs must be installed in the cluster. 2. A Gateway controller must be installed (e.g., Istio, Envoy Gateway, Kong, Traefik). 3. A Gateway resource must exist. 4. Gateway.Name must be set to reference the Gateway resource. |
| Gateway.Annotations | object | {} | Annotations to apply to all HTTPRoute resources. |
| Gateway.Enabled | bool | false | Enable Kubernetes Gateway API mode. |
| Gateway.Name | string | nil | Name of the Gateway resource to attach HTTPRoutes to. |
| Gateway.Namespace | string | nil | Namespace where the Gateway resource exists. When set, NetworkPolicy will automatically be configured to allow traffic from this namespace, unless NetworkPolicy.ingressControllerSelector is manually configured (which takes precedence). |
| Gateway.SectionName | string | nil | Optional listener name on the Gateway resource. Maps to parentRefs[].sectionName in HTTPRoute resources. |
| Hibernation.Enabled | bool | false | Whether to enable the Hibernation feature |
| Hibernation.ImagePullSecrets | string | nil | Name of image pull secret to pull private Docker images or an array of image pull secrets |
| Hibernation.JavaOpts | string | nil | additional Java options to pass to the hibernation JVM process |
| Hibernation.NodeSelector | object | {} | Node labels and tolerations for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector |
| Hibernation.PodSecurityContext | object | {} | |
| Hibernation.Protected | bool | false | Set to true to generate a secret URL component which must be used in all ingress endpoints |
| Hibernation.Resources.Limits.Cpu | string | "100m" | CPU limit to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu Set to 0 to disable CPU limits (no limit will be applied) |
| Hibernation.Resources.Limits.Memory | string | "250Mi" | Memory limit to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory |
| Hibernation.Resources.Requests.Cpu | string | "100m" | CPU request to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu |
| Hibernation.Resources.Requests.Memory | string | "50Mi" | Memory request to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory |
| Hibernation.SecurityContext.capabilities.drop[0] | string | "ALL" | |
| Hibernation.SecurityContext.readOnlyRootFilesystem | bool | true | |
| Hibernation.SecurityContext.runAsNonRoot | bool | true | |
| Hibernation.Tolerations | list | [] | Specify tolerations for the Hibernation Monitor pod. See documentation |
| Hibernation.image.pullPolicy | string | nil | Used to override the default pull policy |
| Hibernation.image.registry | string | "us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution" | container registry for the image |
| Hibernation.image.repository | string | "managed-master-hibernation-monitor" | container image repository |
| Hibernation.image.tag | string | "622.0a6dbc416bce" | container image tag |
| Master.Enabled | bool | true | Whether to create the resources required to schedule controllers. |
| Master.HighAvailabilitySupport | bool | true | Whether to set up required resources (RBAC, NetworkPolicy...) for high availability support. This option does NOT enable high availability on controllers, this needs to be done for |
Deploy cloudbees-core with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudbees-core on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudbees-core is pinned at v3.38679.0+6b1aab44b9b6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply