teamcity

by serge.logvinov

Helm chartv1.1.1App 2026.2.2Verified publisher

Teamcity on Kubernetes

About this chart

teamcity

Teamcity on Kubernetes

TeamCity is a build management and CI/CD server from JetBrains. Self-hosted version of TeamCity is available for free for small teams. You can run TeamCity on Kubernetes using this Helm chart.

Homepage: https://github.com/sergelogvinov/helm-charts

Maintainers

NameEmailUrl
sergelogvinovhttps://github.com/sergelogvinov

Source Code

Example:

server:
  resources:
    limits:
      cpu: 4
      memory: 8Gi
    requests:
      cpu: 500m
      memory: 4Gi
  persistentVolume:
    storageClass: proxmox-xfs
    size: 20Gi

agent:
  replicaCount: 2

  resources:
    limits:
      cpu: 2
      memory: 1Gi
    requests:
      cpu: 500m
      memory: 512Mi

  envs:
    DOCKER_BUILDKIT: "1"
    GOOGLE_APPLICATION_CREDENTIALS: /home/buildagent/.gcp/sa.json

  # GCP service account key
  extraVolumeMounts:
    - name: gcp
      mountPath: /home/buildagent/.gcp

  extraVolumes:
    - name: gcp
      secret:
        secretName: gcp
        defaultMode: 432

# Add docker-in-docker to the Teamcity agent
dind:
  resources:
    limits:
      cpu: 2
      memory: 16Gi
    requests:
      cpu: 500m
      memory: 2Gi

  persistence:
    enabled: true

    storageClass: proxmox-xfs
    size: 150Gi

ingress:
  enabled: true

  hosts:
    - host: ci.example.com
      paths: ["/"]
  tls:
    - secretName: ci.example.com-ssl
      hosts:
        - ci.example.com

Values

KeyTypeDefaultDescription
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
server.enabledbooltrue
server.replicaCountint1
server.clusterModeboolfalseTeamcity server runs as cluster ref: https://www.jetbrains.com/help/teamcity/2024.07/multinode-setup.html
server.clusterResponsibilities[0]string"CAN_PROCESS_BUILD_TRIGGERS"
server.clusterResponsibilities[1]string"CAN_PROCESS_USER_DATA_MODIFICATION_REQUESTS"
server.clusterResponsibilities[2]string"CAN_CHECK_FOR_CHANGES"
server.clusterResponsibilities[3]string"CAN_PROCESS_BUILD_MESSAGES"
server.imageobject{"pullPolicy":"IfNotPresent","repository":"ghcr.io/sergelogvinov/teamcity","tag":""}Teamcity container image
server.envsobject{}Teamcity server environment variables
server.configDbstring""Teamcity database properties ref: https://www.jetbrains.com/help/teamcity/setting-up-an-external-database.html
server.updateStrategyobject{"type":"Recreate"}pod deployment update strategy type. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
server.serviceAccountobject{"annotations":{},"create":true,"name":""}Teamcity server Service Account. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
server.podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
server.podSecurityContextobject{"fsGroup":1000,"fsGroupChangePolicy":"OnRootMismatch"}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
server.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
server.resourcesobject{"requests":{"cpu":"500m","memory":"1Gi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
server.priorityClassNamestringnilPriority Class Name ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
server.persistentVolumeobject{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"existingClaim":"","size":"10Gi","storageClass":""}Persistence parameters ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
server.persistentVolume.annotationsobject{}Teamcity data Persistent Volume Claim annotations
server.persistentVolume.accessModeslist["ReadWriteOnce"]Teamcity data Persistent Volume access modes ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
server.persistentVolume.sizestring"10Gi"teamcity data Persistent Volume size
server.persistentVolume.storageClassstring""Teamcity data Persistent Volume Storage Class If defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack)
server.persistentVolume.existingClaimstring""Teamcity data Persistent Volume existing claim name If defined, PVC must be created manually before volume will be bound
server.nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
server.tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
server.affinityobject{}Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
server.additionalContainerslist[]Additional containers to add to the server deployment ref: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container
agent.enabledbooltrue
agent.image.repositorystring"ghcr.io/sergelogvinov/teamcity"
agent.image.pullPolicystring"IfNotPresent"
agent.image.tagstring""
agent.replicaCountint0Use a deployment if you want to start teamcity agents by yourself Teamcity can run agents by demand
agent.envsobject{}Teamcity agent environment variables
agent.updateStrategyobject{"type":"Recreate"}pod deployment update strategy type. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
agent.serviceAccountobject{"annotations":{},"create":true,"name":""}Teamcity agent Service Account. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
agent.rbacobject{"create":false,"rules":[]}Teamcity agent RBAC permission.
agent.podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
agent.podSecurityContextobject{"fsGroup":999,"fsGroupChangePolicy":"OnRootMismatch"}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
agent.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":999,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
agent.resourcesobject{"requests":{"cpu":"500m","memory":"512Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
agent.priorityClassNamestringnilPriority Class Name ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
agent.extraVolumeMountslist[]Additional container volume mounts.
agent.extraVolumeslist[]Additional volumes.
agent.nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
agent.tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
agent.affinityobject{}Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
dind.enabledbooltrue
dind.imageobject{"pullPolicy":"IfNotPresent","repository":"docker","tag":"26.1-dind"}Docker in Docker image. ref: https://hub.docker.com/_/docker/tags?page=1&name=dind
dind.resourcesobject{"limits":{"cpu":1,"memory":"2Gi"},"requests":{"cpu":"500m","memory":"512Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
dind.extraVolumeMountslist[]Additional container volume mounts.
dind.extraVolumeslist[]Additional volumes.
dind.persistenceobject{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":false,"size":"100Gi"}Persistence parameters for source code ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
serviceobject{"ipFamilies":["IPv4"],"port":80,"type":"ClusterIP"}Service parameters ref: https://kubernetes.io/docs/concepts/services-networking/service/
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[]}],"tls":[]}Registry ingress parameters ref: http://kubernetes.io/docs/user-guide/ingress/
ingress.enabledboolfalseIf true, teamcity Ingress will be created
ingress.classNamestring""Ingress controller class name
ingress.annotationsobject{}Ingress annotations
ingress.hostslist[{"host":"chart-example.local","paths":[]}]Ingress hosts configuration
ingress.tlslist[]Ingress TLS configuration
metricsobject{"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"nginx","tag":"1.23.0-alpine"},"password":"prometheus","securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":101,"runAsNonRoot":true,"runAsUser":101,"seccompProfile":{"type":"RuntimeDefault"}},"username":"prometheus"}Expose Teamcity server metrics
metrics.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":101,"runAsNonRoot":true,"runAsUser":101,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
postgresql.enabledboolfalse
postgresql.postgresqlDatabasestring"teamcity"
postgresql.postgresqlUsernamestring"teamcity"
postgresql.postgresqlPasswordstring"teamcity"

Deploy teamcity with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has teamcity 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 chartteamcity is pinned at v1.1.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