jenkins
by KubeGems
The leading open source automation server
About this chart
Jenkins
Jenkins is widely recognized as the most feature-rich CI available with easy configuration, continuous delivery and continuous integration support, easily test, build and stage your app, and more. It supports multiple SCM tools including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based projects as well as arbitrary scripts.
TL;DR
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.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 bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/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 | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | nil |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | nil |
nameOverride | String to partially override common.names.fullname | nil |
fullnameOverride | String to fully override common.names.fullname | nil |
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 | [] |
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.277.4-debian-10-r14 |
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 | nil |
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 | nil |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | nil |
Jenkins deployment parameters
| Name | Description | Value |
|---|---|---|
updateStrategy.type | Jenkins deployment strategy type | RollingUpdate |
priorityClassName | Jenkins pod priority class name | nil |
hostAliases | Jenkins pod host aliases | [] |
extraVolumes | Optionally specify extra list of additional volumes for Jenkins pods | [] |
extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Jenkins container(s) | [] |
sidecars | Add additional sidecar containers to the Jenkins pod | {} |
initContainers | Add additional init containers to the Jenkins pods | {} |
lifecycleHooks | Add lifecycle hooks to the Jenkins deployment | {} |
podLabels | Extra labels for Jenkins pods | {} |
podAnnotations | Annotations for Jenkins pods | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | {} |
resources.limits | The resources limits for the Jenkins container | {} |
resources.requests | The requested resources for the Jenkins container | {} |
containerPorts.http | Jenkins HTTP container port | 8080 |
containerPorts.https | Jenkins HTTPS container port | 8443 |
podSecurityContext.enabled | Enabled Jenkins pods' Security Context | true |
podSecurityContext.fsGroup | Set Jenkins pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled Jenkins containers' Security Context | true |
containerSecurityContext.runAsUser | Set Jenkins container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set Jenkins container's Security Context runAsNonRoot | true |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 180 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 30 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
service.type | Jenkins service type | LoadBalancer |
service.port | Jenkins service HTTP port | 80 |
service.httpsPort | Jenkins service HTTPS port | 443 |
service.nodePorts.http | Node port for HTTP | nil |
service.nodePorts.https | Node port for HTTPS | nil |
service.clusterIP | Jenkins service Cluster IP | nil |
service.loadBalancerIP | Jenkins service Load Balancer IP | nil |
| `service.l |
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 v8.0.1 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