jenkins
by Helm
Jenkins is an open source Continuous Integration and Continuous Delivery (CI/CD) server designed to automate the building, testing, and deploying of any software project.
About this chart
Jenkins packaged by Bitnami
Jenkins is an open source Continuous Integration and Continuous Delivery (CI/CD) server designed to automate the building, testing, and deploying of any software project.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/jenkins
Introduction
This chart bootstraps a Jenkins deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
To install the chart with the release name my-release:
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/jenkins
These commands deploy Jenkins on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Jenkins Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | Jenkins image registry | docker.io |
image.repository | Jenkins image repository | bitnami/jenkins |
image.tag | Jenkins image tag (immutable tags are recommended) | 2.387.1-debian-11-r3 |
image.digest | Jenkins image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Jenkins image pull policy | IfNotPresent |
image.pullSecrets | Jenkins image pull secrets | [] |
image.debug | Enable image debug mode | false |
Jenkins Configuration parameters
| Name | Description | Value |
|---|---|---|
jenkinsUser | Jenkins username | user |
jenkinsPassword | Jenkins user password | "" |
jenkinsHost | Jenkins host to create application URLs | "" |
jenkinsHome | Jenkins home directory | /bitnami/jenkins/home |
javaOpts | Custom JVM parameters | [] |
disableInitialization | Skip performing the initial bootstrapping for Jenkins | no |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Array with extra environment variables to add to the Jenkins container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
plugins | List of plugins to be installed during Jenkins first boot. | [] |
extraPlugins | List of plugins to install in addition to those listed in plugins | [] |
latestPlugins | Set to true to download the latest version of all dependencies, even if the version(s) of the requested plugin(s) are not the latest. | true |
latestSpecifiedPlugins | Set to true download the latest dependencies of any plugin that is requested to have the latest version. | false |
skipImagePlugins | Set this value to true to skip installing plugins stored under /opt/bitnami/jenkins/plugins | false |
overridePlugins | Setting this value to true will remove all plugins from the jenkinsHome directory and install new plugins from scratch. | false |
overridePaths | Comma-separated list of relative paths to be removed from Jenkins home volume and/or mounted if present in the mounted content dir | "" |
initScripts | Dictionary of scripts to be mounted at /docker-entrypoint-initdb.d. Evaluated as a template. Allows .sh and .groovy formats. | {} |
initScriptsCM | ConfigMap containing the /docker-entrypoint-initdb.d scripts. Evaluated as a template. | "" |
initScriptsSecret | Secret containing /docker-entrypoint-initdb.d scripts to be executed at initialization time that contain sensitive data. Evaluated as a template. | "" |
initHookScripts | Dictionary of scripts to be mounted at $JENKINS_HOME/init.groovy.d. Evaluated as a template. Allows .sh and .groovy formats. | {} |
initHookScriptsCM | ConfigMap containing the $JENKINS_HOME/init.groovy.d scripts. Evaluated as a template. | "" |
initHookScriptsSecret | Secret containing $JENKINS_HOME/init.groovy.d scripts to be executed at initialization time that contain sensitive data. Evaluated as a template. | "" |
Jenkins TLS configuration
| Name | Description | Value |
|---|---|---|
tls.autoGenerated | Create self-signed TLS certificates. Currently only supports PEM certificates. | false |
tls.usePemCerts | Use this variable if your secrets contain PEM certificates instead of PKCS12 | false |
tls.existingSecret | Name of the existing secret containing the 'jenkins.jks' keystore, if usePemCerts is enabled, use keys 'tls.crt' and 'tls.key'. | "" |
tls.password | Password to access the JKS keystore when it is password-protected. | "" |
tls.passwordsSecret | Name of the existing secret containing the JKS keystore password. | "" |
tls.resources.limits | Init container generate-tls-certs resource limits | {} |
tls.resources.requests | Init container generate-tls-certs resource requests | {} |
Jenkins Configuration as Code plugin settings (EXPERIMENTAL)
| Name | Description | Value |
|---|---|---|
configAsCode.enabled | Enable configuration as code. | false |
configAsCode.extraConfigFiles | List of additional configuration-as-code files to be mounted | {} |
configAsCode.securityRealm | Content of the 'securityRealm' block | {} |
configAsCode.authorizationStrategy | Content of the 'authorizationStrategy' block | {} |
configAsCode.security | Content of the 'security' block | {} |
configAsCode.extraJenkins | Append additional settings under the 'jenkins' block | {} |
Deploy jenkins with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jenkins 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 chartjenkins is pinned at v12.0.2 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