cloudbees-core

by CloudBees

Helm chartv3.38679.0+6b1aab44b9b6App 2.580.3.38678

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 delete command does NOT remove the persistent volume claims as precaution against data loss. You will need to use the kubectl delete pvc command 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

KeyTypeDefaultDescription
Agents.EnabledbooltrueEnable to create agent resources (service account, role)
Agents.ImagePullSecretsstringnilName of image pull secret to pull private Docker images or an array of image pull secrets
Agents.SeparateNamespace.CreateboolfalseIf 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.EnabledstringnilIf enabled, agents resources will be created in a separate namespace as well as bindings allowing masters to schedule them.
Agents.SeparateNamespace.NamestringnilNamespace where to create agents resources. Defaults to ${namespace}-builds where ${namespace} is the namespace where the chart is installed.
Agents.UseGitLfsImageboolfalseUse 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.registrystringnilContainer image registry for the agent
Agents.image.repositorystring"agent"Container image repository for the agent
Agents.image.tagstringnilContainer image tag for the agent
CascBundleService.annotationsobject{}Additional annotations to put on the pod running the CasC Bundle Service
CascBundleService.autoversioningbooltrueenable bundle autoversioning
CascBundleService.containerSecurityContextobject{}
CascBundleService.createConfigbooltrueWhether 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.credentialSecretsNamespacestringnilNamespace to manage the secrets to configure k8s based credentials.
CascBundleService.enabledboolfalseWhether to enable the installation of the CasC Bundle Service for the cluster
CascBundleService.image.dockerImagestringnilfull Docker image path for CasC Bundle Service
CascBundleService.image.pullPolicystring"IfNotPresent"https://kubernetes.io/docs/concepts/containers/images/#updating-images
CascBundleService.image.registrystring"us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution"Docker registry for CasC Bundle Service
CascBundleService.image.repositorystring"cloudbees-casc-bundle-service"Docker image repository for CasC Bundle Service
CascBundleService.image.tagstring"816.6e190e66ac5b"Docker image tag for CasC Bundle Service
CascBundleService.imagePullSecretsstringnilName of image pull secret to pull private Docker images or an array of image pull secrets
CascBundleService.ingress.enabledbooltruewhether or not we want to allow external access to the CasC Bundle Service.
CascBundleService.javaOptsstringnilAdditional java options to pass to the CasC Bundle Service
CascBundleService.nodeSelectorobject{}Node labels and tolerations for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
CascBundleService.podSecurityContextobject{}
CascBundleService.pollingSchedulestring"5m"connectors polling schedule
CascBundleService.replicasint2Number of replicas the CasC Bundle Service will start by default.
CascBundleService.resources.limits.cpustring"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.memorystring"512M"Memory limit to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory
CascBundleService.resources.requests.cpustring"500m"CPU request to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu
CascBundleService.resources.requests.memorystring"512M"Memory request to run CasC Bundle Service https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory
CascBundleService.serviceAccountNamestring"casc-bundle-service"Name of the service account the CasC Bundle Service will run as
CascBundleService.ssh.strictHostKeyCheckingEnabledbooltruewhether 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.tolerationslist[]Specify tolerations for the CasC Bundle Service pod. See documentation
Common.image.pullPolicystringnilUsed to override the default pull policy for all images
Common.image.registrystring"us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution"container registry for the images
Common.image.tagstring"2.580.3.38678"container image tag
Common.labelsobject{}Additional labels to add to all resources
Gatewayobject{"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.Annotationsobject{}Annotations to apply to all HTTPRoute resources.
Gateway.EnabledboolfalseEnable Kubernetes Gateway API mode.
Gateway.NamestringnilName of the Gateway resource to attach HTTPRoutes to.
Gateway.NamespacestringnilNamespace 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.SectionNamestringnilOptional listener name on the Gateway resource. Maps to parentRefs[].sectionName in HTTPRoute resources.
Hibernation.EnabledboolfalseWhether to enable the Hibernation feature
Hibernation.ImagePullSecretsstringnilName of image pull secret to pull private Docker images or an array of image pull secrets
Hibernation.JavaOptsstringniladditional Java options to pass to the hibernation JVM process
Hibernation.NodeSelectorobject{}Node labels and tolerations for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
Hibernation.PodSecurityContextobject{}
Hibernation.ProtectedboolfalseSet to true to generate a secret URL component which must be used in all ingress endpoints
Hibernation.Resources.Limits.Cpustring"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.Memorystring"250Mi"Memory limit to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory
Hibernation.Resources.Requests.Cpustring"100m"CPU request to run Hibernation Monitor https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu
Hibernation.Resources.Requests.Memorystring"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.readOnlyRootFilesystembooltrue
Hibernation.SecurityContext.runAsNonRootbooltrue
Hibernation.Tolerationslist[]Specify tolerations for the Hibernation Monitor pod. See documentation
Hibernation.image.pullPolicystringnilUsed to override the default pull policy
Hibernation.image.registrystring"us-east1-docker.pkg.dev/cloudbees-artifact-registry/cbci/ubi/unified-distribution"container registry for the image
Hibernation.image.repositorystring"managed-master-hibernation-monitor"container image repository
Hibernation.image.tagstring"622.0a6dbc416bce"container image tag
Master.EnabledbooltrueWhether to create the resources required to schedule controllers.
Master.HighAvailabilitySupportbooltrueWhether 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcloudbees-core is pinned at v3.38679.0+6b1aab44b9b6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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