youtrack
A Helm chart for deploying Youtrack on Kubernetes
About this chart
â¸ī¸ YouTrack Helm Chart
This Helm chart deploys JetBrains YouTrack
đ Description
This flexible and dynamic Helm chart deploys YouTrack on a Kubernetes cluster using the official Docker image.
It supports extensive customization through values.yaml, allowing you to tailor storage, networking, and security settings to your environment.
An initContainer configures both baseUrl and listen-port before startup, ensuring proper service behavior behind reverse proxies.
â ī¸ Breaking Changes (2.0.0)
If you are upgrading from 1.x, migration steps are required.
Please follow the migration guide: MIGRATION-1.x-to-2.0.0.md
â ī¸ Breaking Changes (3.0.0)
If you are upgrading from 2.x, migration steps are required.
Please follow the migration guide: MIGRATION-2.x-to-3.0.0.md
â ī¸ Breaking Changes (4.0.0)
If you are upgrading from 3.x, migration steps are required.
Please follow the migration guide: MIGRATION-3.x-to-4.0.0.md
⨠Features
- Runs the official YouTrack Docker image
- Supports persistent storage for data, logs, configuration and temp (optional)
- Supports backup via volumeStorage or objectStorage (tested with T-Cloud Public and Azure)
- Traefik compatible
- Cert-Manager compatible
- Easy whitelisting of Traefik, Prometheus & Cert-Manager for NetworkPolicy deny-all setups
- IP-based access restriction support
- Possibility to set securityContext and resource limits
- Optional Prometheus metrics via JMX Exporter
- Optional pod host aliases via
values.yaml - Optional custom init containers via
values.yaml - Optional sidecar containers and additional pod volumes via
values.yaml - Highly customizable via
values.yaml
đ Requirements
âī¸ Configuration
Please refer to the values.yaml file for a complete reference of all available configuration parameters.
REQUIRED:
Base URL
Default for local/port-forward usage:
config:
baseUrl: "http://127.0.0.1:8080"
For production/external access, set your real public URL instead (for example https://youtrack.example.com).
Ingress is disabled by default. If you keep the local default, use port-forward access.
config:
baseUrl: "http://127.0.0.1:8080"
ingress:
enabled: false
kubectl port-forward svc/http 8080:8080 -n <namespace>
Backups
choose either volumeStorage or objectStorage (only one active at a time).
âšī¸ Note: The
namefield in eachpersistencesection defines the suffix for the generated PersistentVolumeClaim. It is freely configurable. You can use meaningful names likeyoutrack-backupto make PVs/PVCs easier to identify.
- volumeStorage: backups on Kubernetes Persistent Volumes
persistence:
backups:
backupType: volumeStorage
name: youtrack-backup
- objectStorage: backups on cloud object storage (tested with T-Cloud Public and Azure)
persistence:
backups:
backupType: objectStorage
name: youtrack-backup
Obtain Wizard Token
Every time YouTrack is freshly deployed or upgraded to a new version, a setup token is required to complete the configuration via the web UI.
You can retrieve the token using:
kubectl exec -n namespace -it pod-name -- cat /opt/youtrack/conf/internal/services/configurationWizard/wizard_token.txt
âšī¸ Or simply check the pod logs during startup
OPTIONAL:
Startup Options (3.x, Optional)
Set startup configuration dynamically in values.yaml via one single config.options block:
config:
baseUrl: "http://127.0.0.1:8080"
options:
- -Ddisable.configuration.wizard.on.upgrade=true
- -Djetbrains.youtrack.disableCheckForUpdate=true
- -Xmx2048m
- -XX:MaxMetaspaceSize=512m
-Dbase-url and -Dlisten-port are reserved; the chart sets base-url from config.baseUrl (init configure --base-url and ConfigMap) and listen-port from service.port (init configure --listen-port), so do not set either in config.options.
config.mountStrategy controls how youtrack.jvmoptions is injected:
subPath(default): mountyoutrack.jvmoptionsdirectly from ConfigMap.copy: init container mounts ConfigMap at/tmp/youtrack-configand copies the file into/opt/youtrack/conf.
The chart adds a ConfigMap checksum annotation to the StatefulSet pod template, so changes in config.options trigger an automatic rolling restart.
Prometheus Metrics via JMX Exporter (Optional)
Enable metrics.enabled to expose Prometheus metrics from YouTrack via the JMX Exporter Java agent.
metrics:
enabled: true
port: 9404
When enabled, the chart:
- creates a metrics ConfigMap with
jmx_exporter.yaml - downloads the JMX Exporter Java agent in the init container from
metrics.jarUrl - mounts the agent and config into the main YouTrack container
- exposes a
metricscontainer port andmetricsKubernetes Service
A compatible dashboard for these metrics is available on Grafana Labs: YouTrack Metrics (dashboard ID 25590).
The default JMX Exporter rules are defined in values.yaml under metrics.jmxExporter.config.
Override this block to customize exported metrics:
metrics:
enabled: true
jmxExporter:
config: |-
startDelaySeconds: 10
rules:
- pattern: 'java.lang<type=Runtime><>Uptime:'
name: process_uptime
metrics.serviceMonitor.enabled optionally creates a Prometheus Operator ServiceMonitor:
metrics:
enabled: true
serviceMonitor:
enabled: true
Only enable serviceMonitor.enabled when the monitoring.coreos.com/v1 ServiceMonitor CRD is installed in the cluster. Metrics still work without a ServiceMonitor; Prometheus can also scrape the generated metrics Service by other means.
If Prometheus selects ServiceMonitor objects by label, set matching labels with metrics.serviceMonitor.labels:
metrics:
enabled: true
serviceMonitor:
enabled: true
labels:
release: kube-prometheus-stack
Database Cleanup (One-Time Recovery)
If backup size grows quickly and logs contain GC is disabled on database, use Xodus recovery flags only as a temporary maintenance action.
Example (one-time run only):
config:
options:
- -Dexodus.env.compactOnOpen=true
- -Dexodus.entityStore.refactoring.missedLinks=true
- -Dexodus.gc.utilization.fromScratch=true
- -Dexodus.entityStore.refactoring.heavyLinks=true
- -Dexodus.gc.filesDeletionDelay=21000
Important:
- Take a fresh backup before running recovery flags.
- Plan downtime:
compactOnOpencan keep YouTrack offline for a long time during startup. - Ensure enough free space on
/opt/youtrack/data(roughly at least current DB size) for compaction temp data. -Dexodus.entityStore.refactoring.heavyLinks=trueran a one-time link refactoring and has no further effect.-Dexodus.gc.utilization.fromScratch=trueforced the GC to recalculate its estimates from scratch after the heavy import period caused the estimates to drift. Now that the GC is working with accurate figures, it is no longer needed.-Dexodus.gc.filesDeletionDelay=21000is a safety measure during cleanup.- Remove the recovery flags after one successful restart, then restart normally again.
- If
.delfiles remain afterwards, delete them only while YouTrack is stopped and only after a fresh backup.
GC Transaction Timeout (Large Installations)
If logs contain errors like GC for database /opt/youtrack/data/youtrack was interrupted because of timeout (500 ms) while cleaning file ..., increase the GC transaction timeout.
config:
options:
- -Dexodus.gc.transactionTimeout=5000
Value is in milliseconds. Increase only when needed.
Extra Init Containers (Optional)
You can run one or more custom init containers before the chart-managed YouTrack init container via values.yaml.
extraInitContainers:
- name: prepare-custom-files
image: busybox:1.36
command: ["/bin/sh", "-ec"]
args:
- |
echo "prepare files"
volumeMounts:
- name: youtrack-data
mountPath: /opt/youtrack/data
Important:
extraInitContainersaccepts complete Kubernetes container specs.- Containers are rendered before the chart-managed YouTrack init container.
- Additional pod volumes can be added with
sidecars.volumeswhen needed.
Sidecars (Optional)
You can attach one or more sidecar containers and additional pod volumes via values.yaml.
sidecars:
containers:
- name: vpn
image: ghcr.io/example/vpn:1.0
volumeMounts:
- name: vpn-config
mountPath: /vpn
volumes:
- name: vpn-config
secret:
secretName: vpn-secret
Important:
sidecars.containersaccepts complete Kubernetes container specs.sidecars.volumesappends pod-level volumes. (Use existing chart volumes or reference pre-created PVCs)
Host Aliases (Optional)
You can add static hostname entries to the YouTrack pod's /etc/hosts via values.yaml.
hostAliases:
- ip: "192.0.2.10"
hostnames:
- "jira.avat.local"
Persistence Configuration
By default, this chart uses storageClassName: csi-disk-default.
This works in most production-grade clusters with CSI drivers.
Check available storage classes in your cluster:
kubectl get storageclass
Shared data volume (optional)
By default, data, conf and logs use separate PVCs. Enable
persistence.sharedVolume to store them in the data, conf and logs
subdirectories of one PVC. The backup PVC remains separate.
WARNING: Existing installations start with an empty shared PVC when this option is enabled. Create a backup first and restore it through the setup wizard. The previous data, conf and logs PVCs may be deleted when this change is applied.
persistence:
sharedVolume:
enabled: true
name: youtrack-shared
storageClassName: csi-disk-default
storageSize: 56Gi
accessModes:
- ReadWriteOnce
annotations: {}
NetworkPolicy deny-all
When using deny-all NetworkPolicy in your cluster & using Traefik you can simply whitelist Traefik via values.yaml
networkPolicyWhitelist:
traefik:
enabled: true
When Prometheus runs in a different namespace, enable metrics and whitelist its namespace and pod selector. The NetworkPolicy automatically uses metrics.port.
metrics:
enabled: true
networkPolicyWhitelist:
prometheus:
enabled: true
namespace: kube-prometheus-stack
podSelector:
app.kubernetes.io/name: prometheus
When using deny-all NetworkPolicy in your cluster & using Cert-Manager you can simply whitelist Cert-Manager via values.yaml
networkPolicyWhitelist:
cert-manager:
enabled: true
port: 8089
IP Whitelist
Enable IP whitelisting to restrict access to specified IP ranges via values.yaml
ipWhitelist:
enabled: true
name: ip-whitelist
sourceRange:
- XXX.XXX.XXX.XXX/XX
Important:
If ipWhitelist.enabled is true, update your ingress annotations to include the whitelist middleware:
traefik.ingress.kubernetes.io/router.middlewares: ip-whitelist@kubernetescrd
Ingress Configuration
Ingress uses explicit ingress.hosts and optional ingress.tls values.
- Ingress is disabled by default. Set
ingress.enabled=trueafter replacing the example host values. - Set
ingress.hoststo configure hosts and paths. This is required wheningress.enabled=true. - Example hosts such as
youtrack.example.comare rejected wheningress.enabled=true. - Leave
ingress.tlsempty to render an HTTP-only Ingress. - Set
ingress.tlsto reference an existing TLS Secret, configure custom TLS hosts, or render an empty TLS entry for clusters that provide a default/wildcard certificate. ingress.tls.hostsis optional. Omit it when cluster policy forbids TLS hosts for internal domains.ingress.annotationsis fully user-managed. The chart does not add Traefik, ACME or cert-manager annotations automatically.
Traefik and cert-manager:
ingress:
enabled: true
ingressClassName: traefik
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: youtrack.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: youtrack-letsencrypt-cert
hosts:
- youtrack.exa
Deploy youtrack with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has youtrack 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 chartyoutrack is pinned at v4.5.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