jenkins

by KubeGems

Helm chartv8.0.1App 2.289.1

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)nil

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes versionnil
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

Jenkins Image parameters

NameDescriptionValue
image.registryJenkins image registrydocker.io
image.repositoryJenkins image repositorybitnami/jenkins
image.tagJenkins image tag (immutable tags are recommended)2.277.4-debian-10-r14
image.pullPolicyJenkins image pull policyIfNotPresent
image.pullSecretsJenkins image pull secrets[]
image.debugEnable image debug modefalse

Jenkins Configuration parameters

NameDescriptionValue
jenkinsUserJenkins usernameuser
jenkinsPasswordJenkins user password""
jenkinsHostJenkins host to create application URLsnil
jenkinsHomeJenkins home directory/bitnami/jenkins/home
javaOptsCustom JVM parameters[]
disableInitializationSkip performing the initial bootstrapping for Jenkinsno
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsArray with extra environment variables to add to the Jenkins container[]
extraEnvVarsCMName of existing ConfigMap containing extra env varsnil
extraEnvVarsSecretName of existing Secret containing extra env varsnil

Jenkins deployment parameters

NameDescriptionValue
updateStrategy.typeJenkins deployment strategy typeRollingUpdate
priorityClassNameJenkins pod priority class namenil
hostAliasesJenkins pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for Jenkins pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for Jenkins container(s)[]
sidecarsAdd additional sidecar containers to the Jenkins pod{}
initContainersAdd additional init containers to the Jenkins pods{}
lifecycleHooksAdd lifecycle hooks to the Jenkins deployment{}
podLabelsExtra labels for Jenkins pods{}
podAnnotationsAnnotations for Jenkins pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment{}
resources.limitsThe resources limits for the Jenkins container{}
resources.requestsThe requested resources for the Jenkins container{}
containerPorts.httpJenkins HTTP container port8080
containerPorts.httpsJenkins HTTPS container port8443
podSecurityContext.enabledEnabled Jenkins pods' Security Contexttrue
podSecurityContext.fsGroupSet Jenkins pod's Security Context fsGroup1001
containerSecurityContext.enabledEnabled Jenkins containers' Security Contexttrue
containerSecurityContext.runAsUserSet Jenkins container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet Jenkins container's Security Context runAsNonRoottrue
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe180
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
customReadinessProbeCustom readinessProbe that overrides the default one{}

Traffic Exposure Parameters

NameDescriptionValue
service.typeJenkins service typeLoadBalancer
service.portJenkins service HTTP port80
service.httpsPortJenkins service HTTPS port443
service.nodePorts.httpNode port for HTTPnil
service.nodePorts.httpsNode port for HTTPSnil
service.clusterIPJenkins service Cluster IPnil
service.loadBalancerIPJenkins service Load Balancer IPnil
`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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartjenkins is pinned at v8.0.1 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