cloudbees-previews

by CloudBees

Helm chartv1.2.0App 1.2.0

A Helm chart for CloudBees Previews

About this chart

cloudbees-previews

A Helm chart for CloudBees Previews

Maintainers

NameEmailUrl
CloudBees

Requirements

RepositoryNameVersion
file://../environment-apiserverapiserver(environment-apiserver)1.2.0
file://../environment-operatoroperator(environment-operator)1.2.0
file://../hnchnc0.9.0

Values

KeyTypeDefaultDescription
apiserver.auth.apiTokenstring""Directly passed-in API token to be stored in the Secret <Release.Name>-apiserver-auth-token. Only applies in combination with an empty apiTokenSecretName.
apiserver.auth.apiTokenSecretNamestring"<Release.Name>-apiserver-auth-token"Name of the Secret providing the API server token. If not specified, a Secret with the default name is generated during installation but never updated. The token must be present in the Secret key 'token'.
apiserver.image.pullPolicystring"IfNotPresent"Image pull policy.
apiserver.image.repositorystring"cloudbees/environment-apiserver"The registry and image name for the API server image.
apiserver.image.tagstring"<Chart.Version>"Docker image tag.
apiserver.ingress.annotationsobject{}Additional annotations to be placed on the Ingress resource of the API server.
apiserver.ingress.enabledbooltrueCreates Ingress resource for API server if set to true.
apiserver.ingress.hoststring"api.<global.ingress.host>"Ingress hostname for the API server component.
apiserver.ingress.tlsSecretstring"<global.ingress.tlsSecret>"Ingress TLS Secret name for the API server component.
apiserver.installbooltrueInstalls the API server component if enabled.
apiserver.livenessProbe.initialDelaySecondsint60
apiserver.livenessProbe.periodSecondsint10
apiserver.livenessProbe.successThresholdint1
apiserver.livenessProbe.timeoutSecondsint1
apiserver.longPollDurationstring"7s"The duration the server should wait for an environment to match and become ready during polling requests. It applies to API requests that use the environment list endpoint's check=ready parameter. This ensures synchronization between the Environment creation/update (triggered by a SCM webhook) and an asynchronously running client that requires that Environment (e.g. an e2e test script triggered by a CI job). When no environment matches during a request, the server checks if there's an environment that matches all criteria but the commit sha, in order to give the client a hint about mismatching configuration. This duration should be lower than the ingress controller's read timeout and its worker termination timeout (10s by default for nginx).
apiserver.readinessProbe.periodSecondsint10
apiserver.readinessProbe.successThresholdint1
apiserver.readinessProbe.timeoutSecondsint1
apiserver.replicasint1
apiserver.resources.limits.cpustring"200m"CPU resource limit for the API server component.
apiserver.resources.limits.memorystring"64Mi"Memory resource limit for the API server component.
apiserver.resources.requests.cpustring"100m"CPU resource request for the API server component.
apiserver.resources.requests.memorystring"32Mi"Memory resource request for the API server component.
apiserver.service.annotationsobject{}
apiserver.service.externalPortint8080
apiserver.service.internalPortint8080
apiserver.service.typestring"ClusterIP"
environments.deployTimeoutstring"20m"The default timeout for environment deploy operations (valid units: ms,s,m,h).
environments.ingress.classstring"<global.ingress.class>"The Ingress class for generated Ingress resources.
environments.ingress.hoststring"preview.<global.ingress.host>"The Ingress host for generated Kubernetes resources.
environments.ingress.pathBasedIngressAddressstring""The hostname for path-based ingresses.
environments.ingress.tlsSecretstring""The TLS secret name for enabling TLS on preview environment Ingresses. If specified, it must reference a secret containing a wildcard certificate key pair for the configured ingress host. The key pair must be provided in the Secret keys tls.key and tls.crt.
environments.pipeline.deployerstring"cloudbees/environment-deployer:0.5.4"The deployer image used for deploying Kubernetes resources.
environments.pipeline.detectorstring"cloudbees/environment-detector:0.10.0"The detector image used for parsing .preview.yaml and configuring the environment creation pipeline.
environments.pipeline.generatorstring"cloudbees/environment-manifest-generator:1.0.1"The generator image used for generating Kubernetes manifests.
environments.pipeline.helmstring"cloudbees/environment-helm-generator:0.7.0"The helm image used for templating Helm Charts.
environments.pipeline.imagePullSecretslist[]List of image pull secrets for use in generated manifests.
environments.resources.limits.cpustring""Default CPU resource limit for environments.
environments.resources.limits.memorystring""Default memory resource limit for environments.
environments.resources.limits.storagestring""Default storage resource limit for environments.
environments.resources.requests.cpustring""Default CPU resource request for environments.
environments.resources.requests.memorystring""Default memory resource request for environments.
environments.resources.requests.storagestring""Default storage resource request for environments.
environments.ttlstring"0s"The time to live (TTL) in seconds for an environment. Environments get deleted once they reach their TTL. The default is 0s, which means no TTL applies.
global.analytics.enabledboolnilWhether to report basic usage information to CloudBees. Similar to reporting enabled by default in CloudBees CI: https://cloudbees.com/r/data-collection-analytics
global.ingress.classstring""The Ingress class for generated Ingress resources.
global.ingress.hoststring"previews.local"The base domain used for Ingresses. Components of CloudBees Previews use sub domains of this global domain unless explicit hostnames are specified.
global.ingress.tlsSecretstring""The TLS secret name for enabling TLS on Ingresses. If left blank, TLS does not get configured. If specified, it must reference a secret containing a wildcard certificate key pair for global.ingress.host. The key pair must be provided in the Secret keys tls.key and tls.crt.
global.license.secretstring""The name of a Secret containing cert and key keys. Should be a valid CloudBees CI (operations center) license, typically available from https://cloudbees-ci.yourcorp/cjoc/license/
hnc.installbooltrueWhether to install hierarchical namespaces (HNC) as part of the Previews chart. If set to false, you must install HNC separately.
operator.checkout.imagestring"cloudbees/environment-git:1.1.3"
operator.deployer.clusterRolestring"<Release.Name>-deployer-childns-clusterrole"Name of the ClusterRole that is used to deploy user-defined manifests. It is bound to each preview separately, and scoped to the preview's Namespace.
operator.image.pullPolicystring"IfNotPresent"The Docker image pull policy for the operator image.
operator.image.repositorystring"cloudbees/environment-operator"The registry and image name for the environment operator image.
operator.image.tagstring"<Chart.Version>"Tag for explicitly setting the environment operator version.
operator.nameOverridestring"cloudbees-previews"
webhook.image.pullPolicystring"IfNotPresent"The Docker image pull policy for the webhook image.
webhook.image.repositorystring"cloudbees/environment-webhook"The registry and image name for the webhook image.
webhook.image.tagstring"<Chart.Version>"Tag for explicitly setting the webhook version.
webhook.ingress.classstring"<global.ingress.class>"Webhook Ingress class. Can be explicitly set if multiple Ingress Controllers are installed, and the Previews webhook is handled by a different controller than the one used for environments.
webhook.ingress.enabledbooltrueEnables webhook ingress if set to true.
webhook.ingress.hoststring"webhook.<global.ingress.host>"The hostname for the webhook component. You can set this explicitly if multiple Ingress Controllers are installed.
webhook.ingress.pathstring"/"Path for the webhook component.
webhook.ingress.tlsSecretstring"<global.ingress.tlsSecret>"TLS secret name for the webhook component.
webhook.livenessProbe.initialDelaySecondsint60
webhook.livenessProbe.periodSecondsint10
webhook.livenessProbe.successThresholdint1
webhook.livenessProbe.timeoutSecondsint1
webhook.log.levelstring"info"Log level configuration for the webhook component.
webhook.readinessProbe.periodSecondsint10
webhook.readinessProbe.successThresholdint1
webhook.readinessProbe.timeoutSecondsint1
webhook.resources.limits.cpustring"100m"CPU resource limit for the webhook component.
webhook.resources.limits.memorystring"30Mi"Memory resource limit for the webhook component.
webhook.resources.requests.cpustring"100m"CPU resource request for the webhook component.
webhook.resources.requests.memorystring"20Mi"Memory resource request for the webhook component.
webhook.service.annotationsobject{}
webhook.service.externalPortint80
webhook.service.internalPortint8080
webhook.service.typestring"ClusterIP"

Autogenerated from chart metadata using helm-docs v1.12.0

Deploy cloudbees-previews with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudbees-previews 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-previews is pinned at v1.2.0 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