Skip to content

The Unified and Autonomous Development Platform

15.0 KB
Raw Blame
# Global values
global:
  # global.nameOverride -- Override the name of the app.
  nameOverride: ""
  # global.fullnameOverride -- Override the fully qualified app name.
  fullnameOverride: ""
  # global.commonLabels -- To apply labels to all resources.
  commonLabels: {}
    # dept_name: platform

onedev:
  # onedev.replicas -- Number of OneDev servers to run. With an enterprise license, you will be able to distribute
  # different projects to different servers for horizontal scaling, as well as replicate project repositories and
  # artifacts for high availability. Note that setting this param to 2 or more is only meaningful if you are
  # connecting to external database; otherwise they simply run as independent OneDev instances
  replicas: 1
  # onedev.updateStrategy -- Valid options: `RollingUpdate`, `OnDelete`
  updateStrategy:
    type: RollingUpdate
  upgrade:
    # onedev.upgrade.stopAllServers -- Stop all OneDev servers in this release before Helm applies a
    # new image, then restore the configured replica count. Required for shared database migrations
    # and incompatible cluster versions. Image upgrades require downtime; unchanged images skip shutdown.
    # Set false only if external deployment tooling coordinates shutdown. This does not disable upgrades.
    stopAllServers: true
    # onedev.upgrade.image -- Python 3 image used by the pre-upgrade hook. Override for a private mirror.
    image: docker.io/library/python:3.13-alpine
    # onedev.upgrade.stopTimeoutSeconds -- Maximum time to wait for old OneDev pods to terminate
    # after requesting shutdown. The hook Job's overall deadline is this value plus 30 seconds,
    # including scheduling and image pulling. Set helm --timeout separately to allow for the hook
    # and application startup.
    stopTimeoutSeconds: 240
    # onedev.upgrade.podLabels -- Labels for the upgrade hook pod, independent of application pod labels.
    # Use these to disable sidecar injection when needed so the hook Job can finish.
    podLabels: {}
      # sidecar.istio.io/inject: "false"
    # onedev.upgrade.podAnnotations -- Annotations for the upgrade hook pod, independent of application
    # pod annotations. Set annotation-based sidecar injection controls here when needed.
    podAnnotations: {}
  trustCerts:
    # onedev.trustCerts.secretName -- Name of an existing secret containing trusted certificates. You may create the
    # secret with "kubectl create secret generic onedev-trustcerts -n onedev --from-file=/path/to/trust-certs",
    # where /path/to/trust-certs is a local directory contains all certificates to be trusted. Certificate should be
    # of base64 encoded PEM format beginning with "-----BEGIN CERTIFICATE-----" and ending with "-----END CERTIFICATE-----"
    secretName: "onedev-trustcerts"
  jvm:
    maxMemoryPercent: "50"
    threadStackSize: "1024k"
  # Specify OneDev Server initial settings to avoid manual setup
  initSettings:
    # onedev.initSettings.user -- Administrator username. Leave empty to prompt
    user: ""
    # onedev.initSettings.password -- Administrator Password. Leave empty to prompt
    password: ""
    # onedev.initSettings.email -- Administrator Email address. Leave empty to prompt
    email: ""
    # onedev.initSettings.serverUrl -- Server url. Leave empty to prompt. Will be ignored if ingress.host is specified
    serverUrl: ""
    # onedev.initSettings.sshRootUrl -- Root url to clone repository via SSH. Leave empty to derive from server url
    sshRootUrl: ""

# External database configuration
database:
  # database.external -- Set to **true** when using external database
  external: false
  # database.type-- Required: Set type of external database. Possible values `mysql`, `mariadb`, `postgresql`
  # [external databases](https://docs.onedev.io/installation-guide/run-as-docker-container#use-external-database)
  type: "mysql"
  # database.host -- IP address or hostname of database
  host: "onedev-mysql.onedev.svc.cluster.local"
  # database.port --  Port Number
  port: "3306"
  # database.name --  Name of the database
  name: "onedev"
  # database.user --  User with access to database
  user: "root"
  # database.password -- Database password
  password: "changeit"
  # database.maximumPoolSize -- Database maximum pool size
  maximumPoolSize: "25"

image:
  # image.name -- Specify the image name to use (relative to `image.repository`).
  name: 1dev/server
  # image.tag -- Specify the image tag to use. Leave empty to use same version as chart
  tag: ""
  # image.repository -- Specify the image repository to use.
  repository: docker.io
  # image.pullPolicy -- Specify the
  # [pullPolicy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy).
  pullPolicy: IfNotPresent
  # image.pullSecrets -- Specify the
  # [imagePullSecrets](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod).
  pullSecrets: []
  #  - name: <REGISTRY_SECRET>

serviceAccount:
  # serviceAccount.create -- If **true**, create a ServiceAccount.
  create: true
  # serviceAccount.name -- Specify a pre-existing ServiceAccount to use if `serviceAccount.create` is **false**.
  name: onedev
  # serviceAccount.annotations -- Annotations to add to the ServiceAccount, if `serviceAccount.create` is **true**.
  annotations: {}

# podAnnotations -- Set annotations on Pods.
podAnnotations: {}

# podLabels -- Set labels on Pods.
podLabels: {}

# podPriorityClassName -- Set the
# [priorityClassName](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass).
podPriorityClassName: ""

# podHostNetwork -- Enable the hostNetwork option on Pods.
podHostNetwork: false

# podSecurityContext -- Allows you to overwrite the default
# [PodSecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/).
podSecurityContext: {}

# securityContext -- Specify securityContext for Containers.
securityContext: {}
# command -- Override default image command.
command: []
# args -- Override default image arguments.
args: []

# env -- Define additional environment variables.
env: []
#  - name: <ENV_VAR_NAME>
#    value: <ENV_VAR_VALUE>
#  - name: <ENV_VAR_NAME>
#    valueFrom:
#      secretKeyRef:
#        name: <SECRET_NAME>
#        key: <KEY_NAME>

# envFrom -- Define environment variables from ConfigMap or Secret data.
envFrom: []
#  - configMapRef:
#      name: <CONFIGMAP_NAME>
#  - secretRef:
#     name: <SECRET_NAME>

# resources -- Specify resource requests and limits.
resources: {}
  # requests:
  #   cpu: 200m
  #   memory: 256Mi
  # limits:
  #   cpu: 200m
  #   memory: 256Mi

# lifecycle -- Specify lifecycle hooks for Containers.
lifecycle: {}
  # preStop:
  #   exec:
  #     command:
  #     - /bin/sleep
  #     - "10"

# terminationGracePeriodSeconds -- Override terminationGracePeriodSeconds.
terminationGracePeriodSeconds: 60

# nodeSelector -- Configure
# [nodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector).
nodeSelector: {}

# tolerations -- Configure
# [taints and tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).
tolerations: []

# affinity -- Configure
# [affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity).
affinity: {}

# topologySpreadConstraints -- Configure
# [topology spread constraints](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/).
topologySpreadConstraints: []

# Configure Git access via SSH
ssh:
  # ssh.enabled -- If **true**, expose OneDev's SSH port through the Kubernetes Service and the
  # configured ingress controller
  enabled: false
  # ssh.port -- Manually change the SSH Service port
  port: ""
  # Configure a separate Service for SSH
  separateService:
    # ssh.separateService.enabled -- If **true**, create a separate Service for SSH instead of
    # adding the SSH port to the main Service
    enabled: false
    type: "ClusterIP"
    clusterIP: ""
    loadBalancerIP: ""
    nodePort: ""
    externalTrafficPolicy: ""
    externalIPs: []
    #  - 4.2.2.1
    ipFamilyPolicy: ""
    ipFamilies: []
    loadBalancerSourceRanges: []
    annotations: {}
    topologyKeys: []

service:
  # service.type -- Specify the type for the Service. ClusterIP, LoadBalancer
  type: "ClusterIP"
  # service.annotations -- Specify annotations for the Service.
  annotations: {}
  # service.topologyKeys -- (array) Specify the
  # [topologyKeys](https://kubernetes.io/docs/concepts/services-networking/service-topology/#using-service-topology).
  topologyKeys: []
  #  - "kubernetes.io/hostname"
  #  - "topology.kubernetes.io/zone"
  #  - "topology.kubernetes.io/region"
  #  - "*"
  # service.ports -- Manually change the HTTP Service port
  ports:
    http: ""
  # service.nodePort -- Specify a nodePort for servcie
  nodePort: ""
  # service.externalTrafficPolicy -- Specify the
  # [externalTrafficPolicy](https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip).
  externalTrafficPolicy: ""
  # service.loadBalancerIP -- Required: If service type is loadbalancer
  # [loadBalancerIP](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer).
  loadBalancerIP: ""
  # service.ipFamilyPolicy -- Configure
  # [IPv4/IPv6 dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).
  ipFamilyPolicy: ""
  # service.ipFamilies -- Configure
  # [IPv4/IPv6 dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).
  ipFamilies: []
# Configure ingress
ingress:
  # ingress.enabled -- If **true**, expose OneDev through the configured ingress controller
  enabled: false
  # ingress.controller -- Specify ingress controller implementation. Supported values are nginx
  # and traefik
  controller: nginx
  # ingress.className -- Specify ingress class name. Requires Kubernetes >= 1.18. This is used
  # by the nginx Ingress and by cert-manager's http01 challenge Ingress for either controller
  # Refer to https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress for details
  className: ""
  # ingress.host -- Set the primary host name. This also determines the server url advertised by
  # OneDev
  host: onedev.example.com
  # ingress.additionalHosts -- Specify additional host names routed to OneDev. Certificates
  # managed by the chart cover the primary host and these additional hosts
  additionalHosts: []
  #  - code.int.example.com
  # ingress.annotations -- Specify additional annotations for the nginx Ingress. These are merged
  # on top of ingress.nginx.annotations and take precedence over them
  annotations: {}

  # ingress.tls -- Configure TLS for ingress
  tls:
    enabled: false
    secretName: "onedev-tls"
    acme:
      # ingress.tls.acme.enabled -- If **true**, create certificate issuer resource. Also requires
      # ingress.tls.enabled to be **true**
      enabled: false
      # ingress.tls.acme.type -- Specify ACME type. Currently only supports letsencrypt
      type: "letsencrypt"
      # ingress.tls.acme.email -- Email to send certificate status notice
      email: [email protected]
      # ingress.tls.acme.production -- If **true**, generate a production certificate;
      # otherwise generate staging certificate. Set this to **false** to avoid reaching
      # rate limit while you are testing your setup
      production: false

  # Nginx configuration
  nginx:
    # ingress.nginx.annotations -- Annotations added to the Ingress when serving traffic with the
    # nginx ingress controller. Set to an empty map to leave them out
    annotations:
      nginx.ingress.kubernetes.io/affinity: "cookie"
      nginx.ingress.kubernetes.io/affinity-mode: "persistent"
      nginx.ingress.kubernetes.io/session-cookie-name: "session-sticky"
      nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
      nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
      nginx.ingress.kubernetes.io/proxy-body-size: "0"

  # Traefik configuration
  traefik:
    # Requires Traefik v3 with its Kubernetes CRD provider enabled. When ingress.tls.acme.enabled
    # is **true**, the http01 challenge is still solved through a temporary Kubernetes Ingress, so
    # ingress.className has to point at your Traefik ingress class and Traefik's Kubernetes Ingress
    # provider has to be enabled as well, otherwise the certificate will never be issued
    # ingress.traefik.middleware -- Specify the buffering middleware created for the route.
    # Body size limits need to be large enough to accommodate your biggest git push
    middleware:
      name: "buffering"
      maxRequestBodyBytes: 1073741824
      memRequestBodyBytes: 1073741824
    # ingress.traefik.extraMiddlewares -- Additional middlewares to attach to the route. Each entry
    # takes a "name" and an optional "namespace" defaulting to the release namespace
    extraMiddlewares: []
    #  - name: redirect-to-https
    #    namespace: traefik

# extraVolumes -- Specify additional Volumes to use.
extraVolumes: []

# extraVolumeMounts -- Specify Additional VolumeMounts to use.
extraVolumeMounts: []

# initContainers -- Specify initContainers to be added.
initContainers: []

# extraContainers -- Specify extra Containers to be added.
extraContainers: []

persistence:
  # persistence.storageClassName -- (string) Specify the storageClassName for PersistentVolumeClaims.
  storageClassName: ""
  # persistence.accessModes -- Specify the accessModes for PersistentVolumeClaims.
  accessModes: "ReadWriteOnce"
  # persistence.size -- Specify the size of PersistentVolumeClaims.
  size: 100Gi
  # persistence.selector -- Specify the selectors for PersistentVolumeClaims.
  selector: {}

# dnsPolicy -- Specify the
# [dnsPolicy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy).
dnsPolicy: ClusterFirst

# dnsConfig -- Specify the
# [dnsConfig](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config).
dnsConfig: {}
#  nameservers:
#    - 1.2.3.4
#  searches:
#   - ns1.svc.cluster-domain.example
#   - my.dns.search.suffix
#  options:
#    - name: ndots
#      value: "2"
#    - name: edns0

# livenessProbe -- Specify the livenessProbe
# [configuration](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes).
# Allow startup time and brief outages when switching between application and maintenance servers.
# Set to null to disable.
livenessProbe:
  httpGet:
    path: /healthz
    port: http
  initialDelaySeconds: 300
  periodSeconds: 10
  timeoutSeconds: 3
  failureThreshold: 6

# readinessProbe -- Specify the readinessProbe
# [configuration](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes).
# OneDev provides `/readyz` for readiness checks. It returns 503 during startup, shutdown, and maintenance.
# Set to null to disable.
readinessProbe:
  httpGet:
    path: /readyz
    port: http
  initialDelaySeconds: 5
  periodSeconds: 5
  timeoutSeconds: 3
  failureThreshold: 3