Skip to content
Snippets Groups Projects
Select Git revision
  • mariadb-0.2.16
  • master default protected
  • gh-pages
  • groundhog2k/issue1235
  • vip-codimd
  • ghost-0.167.2
  • ghost-0.167.1
  • ghost-0.167.0
  • gitea-0.13.3
  • postgres-1.5.5
  • nextcloud-0.19.6
  • ghost-0.166.2
  • ghost-0.166.1
  • redis-2.0.3
  • redis-1.3.6
  • redis-1.2.6
  • redis-1.0.5
  • valkey-2.1.0
  • valkey-1.0.4
  • valkey-2.0.1
  • graylog-0.11.0
  • graylog-0.10.4
  • ghost-0.166.0
  • rabbitmq-2.1.2
  • ghost-0.165.0
25 results

gitea

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Göran Pöhner authored and GitHub committed
    d46f2342
    History

    Gitea

    Version: 0.4.12 Type: application AppVersion: 1.15.9

    A Helm chart for Gitea on Kubernetes

    TL;DR

    $ helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
    $ helm install my-release groundhog2k/gitea

    Introduction

    This chart uses the original Gitea from Docker to deploy Gitea in Kubernetes.

    It fully supports deployment of the multi-architecture docker image.

    Prerequisites

    • Kubernetes 1.12+
    • Helm 3.x
    • PV provisioner support in the underlying infrastructure

    Installing the Chart

    To install the chart with the release name my-release:

    $ helm install my-release groundhog2k/gitea

    Uninstalling the Chart

    To uninstall/delete the my-release deployment:

    $ helm uninstall my-release

    Requirements

    Repository Name Version
    @groundhog2k mariadb 0.2.15
    @groundhog2k postgres 0.2.14
    @groundhog2k redis 0.4.8

    Common parameters

    Key Type Default Description
    fullnameOverride string "" Fully override the deployment name
    nameOverride string "" Partially override the deployment name

    Deployment parameters

    Key Type Default Description
    image.pullPolicy string "IfNotPresent" Image pull policy
    image.repository string "gitea/gitea" Image name
    image.tag string "" Image tag
    imagePullSecrets list [] Image pull secrets
    strategy.type object Recreate Pod deployment strategy
    startupProbe object see values.yaml Startup probe configuration
    livenessProbe object see values.yaml Liveness probe configuration
    readinessProbe object see values.yaml Readiness probe configuration
    customStartupProbe object {} Custom startup probe (overwrites default startup probe configuration)
    customLivenessProbe object {} Custom liveness probe (overwrites default liveness probe configuration)
    customReadinessProbe object {} Custom readiness probe (overwrites default readiness probe configuration)
    resources object {} Resource limits and requests
    nodeSelector object {} Deployment node selector
    podAnnotations object {} Additional pod annotations
    podSecurityContext object see values.yaml Pod security context
    securityContext object see values.yaml Container security context
    env list [] Additional container environmment variables
    args list [] Arguments for the container entrypoint process
    serviceAccount.create bool false Enable service account creation
    serviceAccount.name string "" Optional name of the service account
    serviceAccount.annotations object {} Additional service account annotations
    affinity object {} Affinity for pod assignment
    tolerations list [] Tolerations for pod assignment
    containerHttpPort int 8000 Internal http container port
    containerSshPort int 8022 Internal ssh container port
    revisionHistoryLimit int nil Maximum number of revisions maintained in revision history

    Service paramters

    Key Type Default Description
    services.http.type string "ClusterIP" Service type
    services.http.port int 80 Gitea HTTP service port
    services.http.nodePort int nil Gitea HTTP NodePort (only relevant for type LoadBalancer or NodePort)
    services.http.clusterIP int nil Gitea HTTP ClusterIP (only relevant for type LoadBalancer or NodePort)
    services.http.loadBalancerIP string nil The load balancer ip address (only relevant for type LoadBalancer)
    services.ssh.type string "ClusterIP" Service type
    services.ssh.port int 22 Gitea SSH service port
    services.ssh.nodePort int nil Gitea SSH NodePort (only relevant for type LoadBalancer or NodePort)
    services.ssh.clusterIP int nil Gitea SSH ClusterIP (only relevant for type LoadBalancer or NodePort)
    services.ssh.loadBalancerIP string nil The load balancer ip address (only relevant for type LoadBalancer)

    Ingress parameters

    Key Type Default Description
    ingress.enabled bool false Enable ingress for Gitea service
    ingress.annotations string nil Additional annotations for ingress
    ingress.hosts[0].host string "" Hostname for the ingress endpoint
    ingress.tls list [] Ingress TLS parameters
    ingress.maxBodySize string "64m" Maximum body size for post requests

    Redis session cache

    Key Type Default Description
    externalCache.enabled bool false Enable external Redis cache
    externalCache.host string nil External Redis host and port (host:port)
    redis.enabled bool false Enable Redis cache deployment (will disable external cache settings)
    redis.storage string nil Redis storage settings

    Hint: When no cache configuration is enabled, then all cache settings have to be provided manually in the gitea.config section. See Gitea Config Cheat Sheet for description of all settings.

    Database settings

    Key Type Default Description
    fallbackToSqlite bool true Falls back to internal SQLite when no database is configured
    externalDatabase.enabled bool false Enable usage of external database
    externalDatabase.type string nil External database type ("mysql", "postgres" are supported)
    externalDatabase.charset string "utf8mb4" Database charset to use (only relevant for mysql/mariadb)
    externalDatabase.host string nil External database host
    externalDatabase.name string nil External database name
    externalDatabase.user string nil External database user name
    externalDatabase.password string nil External database user password
    mariadb.enabled bool false Enable MariaDB deployment (will disable external database settings)
    mariadb.settings.arguments[0] string "--character-set-server=utf8mb4" Enable MariaDB UTF8MB4 character set
    mariadb.settings.arguments[1] string "--collation-server=utf8mb4_unicode_ci" Enable UTF8MB4 unicode
    mariadb.settings.rootPassword string nil MariaDB root user password
    mariadb.storage string nil MariaDB storage settings
    mariadb.userDatabase.name string nil MariaDB Gitea database name
    mariadb.userDatabase.password string nil MariaDB Gitea database user
    mariadb.userDatabase.user string nil MariaDB Gitea database user password
    postgres.enabled bool false Enable PostgreSQL deployment (will disable external database settings)
    postgres.settings.superuserPassword string nil PostgreSQL superuser password
    postgres.storage string nil PostgreSQL storage settings
    postgres.userDatabase.name string nil PostgreSQL Gitea database name
    postgres.userDatabase.user string nil PostgreSQL Gitea database user
    postgres.userDatabase.password string nil PostgreSQL Gitea database user password

    Hint: When no database configuration is enabled and fallbackToSqlite is set false, then all database settings have to be provided manually in the gitea.config section. See Gitea Config Cheat Sheet for description of all settings.

    Gitea parameters

    Key Type Default Description
    settings.postInstallDelay int 60 Delay after installation before adminstrative user gets created (Database must be ready and connected)
    settings.defaultAdmin.name string root Gitea administrator user
    settings.defaultAdmin.password string admin Gitea admin user password (Must be changed during first login)
    settings.defaultAdmin.email string root@admin.local Gitea administrator users email
    gitea.config object see values.yaml Gitea specific configuration as described in the Gitea Config Cheat Sheet - More values and sections can be added

    It's recommended to set the following Gitea configuration parameters:

    Key Type Default Description
    gitea.config.server.LFS_JWT_SECRET string nil LFS authentication secret, must be unique string
    gitea.config.security.SECRET_KEY string nil Global secret key
    gitea.config.security.INTERNAL_TOKEN string nil Secret used to validate communication within Gitea binary
    gitea.config.oauth2.JWT_SECRET string nil OAuth2 authentication secret for access and refresh tokens, must be a unique string

    Storage parameters

    Key Type Default Description
    storage object {} Gitea data storage
    storage.accessModes[0] string "ReadWriteOnce" Storage access mode
    storage.persistentVolumeClaimName string nil PVC name when existing storage volume should be used
    storage.requestedSize string nil Size for new PVC, when no existing PVC is used
    storage.className string nil Storage class name
    storage.keepPvc bool false Keep a created Persistent volume claim when uninstalling the helm chart