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
| Name | Url | |
|---|---|---|
| CloudBees |
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../environment-apiserver | apiserver(environment-apiserver) | 1.2.0 |
| file://../environment-operator | operator(environment-operator) | 1.2.0 |
| file://../hnc | hnc | 0.9.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| apiserver.auth.apiToken | string | "" | 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.apiTokenSecretName | string | "<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.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| apiserver.image.repository | string | "cloudbees/environment-apiserver" | The registry and image name for the API server image. |
| apiserver.image.tag | string | "<Chart.Version>" | Docker image tag. |
| apiserver.ingress.annotations | object | {} | Additional annotations to be placed on the Ingress resource of the API server. |
| apiserver.ingress.enabled | bool | true | Creates Ingress resource for API server if set to true. |
| apiserver.ingress.host | string | "api.<global.ingress.host>" | Ingress hostname for the API server component. |
| apiserver.ingress.tlsSecret | string | "<global.ingress.tlsSecret>" | Ingress TLS Secret name for the API server component. |
| apiserver.install | bool | true | Installs the API server component if enabled. |
| apiserver.livenessProbe.initialDelaySeconds | int | 60 | |
| apiserver.livenessProbe.periodSeconds | int | 10 | |
| apiserver.livenessProbe.successThreshold | int | 1 | |
| apiserver.livenessProbe.timeoutSeconds | int | 1 | |
| apiserver.longPollDuration | string | "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.periodSeconds | int | 10 | |
| apiserver.readinessProbe.successThreshold | int | 1 | |
| apiserver.readinessProbe.timeoutSeconds | int | 1 | |
| apiserver.replicas | int | 1 | |
| apiserver.resources.limits.cpu | string | "200m" | CPU resource limit for the API server component. |
| apiserver.resources.limits.memory | string | "64Mi" | Memory resource limit for the API server component. |
| apiserver.resources.requests.cpu | string | "100m" | CPU resource request for the API server component. |
| apiserver.resources.requests.memory | string | "32Mi" | Memory resource request for the API server component. |
| apiserver.service.annotations | object | {} | |
| apiserver.service.externalPort | int | 8080 | |
| apiserver.service.internalPort | int | 8080 | |
| apiserver.service.type | string | "ClusterIP" | |
| environments.deployTimeout | string | "20m" | The default timeout for environment deploy operations (valid units: ms,s,m,h). |
| environments.ingress.class | string | "<global.ingress.class>" | The Ingress class for generated Ingress resources. |
| environments.ingress.host | string | "preview.<global.ingress.host>" | The Ingress host for generated Kubernetes resources. |
| environments.ingress.pathBasedIngressAddress | string | "" | The hostname for path-based ingresses. |
| environments.ingress.tlsSecret | string | "" | 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.deployer | string | "cloudbees/environment-deployer:0.5.4" | The deployer image used for deploying Kubernetes resources. |
| environments.pipeline.detector | string | "cloudbees/environment-detector:0.10.0" | The detector image used for parsing .preview.yaml and configuring the environment creation pipeline. |
| environments.pipeline.generator | string | "cloudbees/environment-manifest-generator:1.0.1" | The generator image used for generating Kubernetes manifests. |
| environments.pipeline.helm | string | "cloudbees/environment-helm-generator:0.7.0" | The helm image used for templating Helm Charts. |
| environments.pipeline.imagePullSecrets | list | [] | List of image pull secrets for use in generated manifests. |
| environments.resources.limits.cpu | string | "" | Default CPU resource limit for environments. |
| environments.resources.limits.memory | string | "" | Default memory resource limit for environments. |
| environments.resources.limits.storage | string | "" | Default storage resource limit for environments. |
| environments.resources.requests.cpu | string | "" | Default CPU resource request for environments. |
| environments.resources.requests.memory | string | "" | Default memory resource request for environments. |
| environments.resources.requests.storage | string | "" | Default storage resource request for environments. |
| environments.ttl | string | "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.enabled | bool | nil | Whether 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.class | string | "" | The Ingress class for generated Ingress resources. |
| global.ingress.host | string | "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.tlsSecret | string | "" | 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.secret | string | "" | 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.install | bool | true | Whether to install hierarchical namespaces (HNC) as part of the Previews chart. If set to false, you must install HNC separately. |
| operator.checkout.image | string | "cloudbees/environment-git:1.1.3" | |
| operator.deployer.clusterRole | string | "<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.pullPolicy | string | "IfNotPresent" | The Docker image pull policy for the operator image. |
| operator.image.repository | string | "cloudbees/environment-operator" | The registry and image name for the environment operator image. |
| operator.image.tag | string | "<Chart.Version>" | Tag for explicitly setting the environment operator version. |
| operator.nameOverride | string | "cloudbees-previews" | |
| webhook.image.pullPolicy | string | "IfNotPresent" | The Docker image pull policy for the webhook image. |
| webhook.image.repository | string | "cloudbees/environment-webhook" | The registry and image name for the webhook image. |
| webhook.image.tag | string | "<Chart.Version>" | Tag for explicitly setting the webhook version. |
| webhook.ingress.class | string | "<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.enabled | bool | true | Enables webhook ingress if set to true. |
| webhook.ingress.host | string | "webhook.<global.ingress.host>" | The hostname for the webhook component. You can set this explicitly if multiple Ingress Controllers are installed. |
| webhook.ingress.path | string | "/" | Path for the webhook component. |
| webhook.ingress.tlsSecret | string | "<global.ingress.tlsSecret>" | TLS secret name for the webhook component. |
| webhook.livenessProbe.initialDelaySeconds | int | 60 | |
| webhook.livenessProbe.periodSeconds | int | 10 | |
| webhook.livenessProbe.successThreshold | int | 1 | |
| webhook.livenessProbe.timeoutSeconds | int | 1 | |
| webhook.log.level | string | "info" | Log level configuration for the webhook component. |
| webhook.readinessProbe.periodSeconds | int | 10 | |
| webhook.readinessProbe.successThreshold | int | 1 | |
| webhook.readinessProbe.timeoutSeconds | int | 1 | |
| webhook.resources.limits.cpu | string | "100m" | CPU resource limit for the webhook component. |
| webhook.resources.limits.memory | string | "30Mi" | Memory resource limit for the webhook component. |
| webhook.resources.requests.cpu | string | "100m" | CPU resource request for the webhook component. |
| webhook.resources.requests.memory | string | "20Mi" | Memory resource request for the webhook component. |
| webhook.service.annotations | object | {} | |
| webhook.service.externalPort | int | 80 | |
| webhook.service.internalPort | int | 8080 | |
| webhook.service.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudbees-previews is pinned at v1.2.0 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