jenkins
Helm chartv0.3.0App 2.528.3BSD-3-Clause
A Helm chart for Jenkins CI/CD - Using pre-built custom image with plugins
About this chart
Jenkins Helm Chart
Jenkins CI/CD server with a pre-built custom controller image, persistent storage, and JCasC support.
Features
- Custom controller image support (plugins baked in)
- JCasC (Configuration as Code) via ConfigMap
- Persistent Jenkins home (PVC)
- Optional Ingress, RBAC, NetworkPolicy, HPA, PDB, ServiceMonitor
Prerequisites
- Kubernetes 1.24+
- Helm 3.8+
- PersistentVolume provisioner
Quick Start
helm install jenkins ./charts/jenkins
Access Jenkins:
kubectl port-forward svc/jenkins 8080:8080
# Visit http://localhost:8080
Configuration
Admin Credentials
- Default username:
admin - Password is generated if
controller.admin.passwordis empty - You can supply an existing secret via
controller.admin.existingSecret
controller:
admin:
username: admin
password: ""
existingSecret: ""
passwordKey: jenkins-admin-password
JCasC Configuration
Enable JCasC and provide config scripts:
controller:
jcasc:
enabled: true
defaultConfig: true
configScripts:
welcome-message: |
jenkins:
systemMessage: "Managed by Helm"
Ingress
ingress:
enabled: true
className: nginx
hosts:
- host: jenkins.example.com
paths:
- path: /
pathType: Prefix
ServiceMonitor
serviceMonitor:
enabled: true
path: /prometheus
interval: 30s
scrapeTimeout: 10s
Deployment Scenarios
values-home-single.yaml: minimal resources for home labsvalues-prod-master-replica.yaml: production-oriented defaults (monitoring, policy, ingress)
Values Reference
See charts/jenkins/values.yaml for all configuration options.
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 v0.3.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