diff --git a/ansible-5/roles/prod.k3s/defaults/main.yml b/ansible-5/roles/prod.k3s/defaults/main.yml index 3323811..38ea5d7 100644 --- a/ansible-5/roles/prod.k3s/defaults/main.yml +++ b/ansible-5/roles/prod.k3s/defaults/main.yml @@ -67,7 +67,7 @@ apps: replication_password: 4q389hq7gf8qo47gq8374g gitea: - enabled: false + enabled: true namespace: gitea state: present diff --git a/ansible-5/roles/prod.k3s/files/gitea/values.yaml b/ansible-5/roles/prod.k3s/files/gitea/values.yaml index 286a498..ae32772 100644 --- a/ansible-5/roles/prod.k3s/files/gitea/values.yaml +++ b/ansible-5/roles/prod.k3s/files/gitea/values.yaml @@ -1,5 +1,6 @@ --- # values file for gitea helm chart +# https://gitea.com/gitea/helm-chart/ replicaCount: 1 ## @section Image @@ -7,12 +8,12 @@ replicaCount: 1 ## @param image.repository Image to start for this pod ## @param image.tag Visit: [Image tag](https://hub.docker.com/r/gitea/gitea/tags?page=1&ordering=last_updated). Defaults to `appVersion` within Chart.yaml. ## @param image.pullPolicy Image pull policy -## @param image.rootless Wether or not to pull the rootless version of Gitea, only works on Gitea 1.14.x or higher +## @param image.rootless Whether to pull the rootless version of Gitea, only works on Gitea 1.14.x or higher image: registry: "" repository: gitea/gitea # Overrides the image tag whose default is the chart appVersion. - tag: "1.17.3" +# tag: "1.22.0" pullPolicy: Always rootless: true # only possible when running 1.14 or later @@ -28,9 +29,17 @@ ingress: persistence: enabled: true + mount: true + create: false + claimName: data-gitea-0 postgresql: enabled: false +postgresql-ha: + enabled: false + +redis-cluster: + enabled: true service: ssh: @@ -52,5 +61,19 @@ gitea: USER: rmorgan PASSWD: rom105 SSL_MODE: disable + repository: ROOT: /data/git/repositories + + session: + PROVIDER: redis-cluster + PROVIDER_CONFIG: redis+cluster://:gitea@gitea-redis-cluster-headless..svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s& + + cache: + ENABLED: true + ADAPTER: redis-cluster + HOST: redis+cluster://:gitea@gitea-redis-cluster-headless..svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s& + + queue: + TYPE: redis + CONN_STR: redis+cluster://:gitea@gitea-redis-cluster-headless..svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&