From 5cb6653626e11662e956a8485f9ce2cff62503e5 Mon Sep 17 00:00:00 2001 From: nold Date: Mon, 24 Jul 2023 15:46:08 +0200 Subject: [PATCH] add(gitea): redis --- projects/gitea/manifests/redis.yaml | 12 ++++++++++++ projects/gitea/project.yml | 3 +++ projects/gitea/values/gitea.yaml | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 projects/gitea/manifests/redis.yaml diff --git a/projects/gitea/manifests/redis.yaml b/projects/gitea/manifests/redis.yaml new file mode 100644 index 00000000..75b3ee8b --- /dev/null +++ b/projects/gitea/manifests/redis.yaml @@ -0,0 +1,12 @@ +apiVersion: databases.spotahome.com/v1 +kind: RedisFailover +metadata: + name: gitea-redis + namespace: gitea +spec: + sentinel: + replicas: 1 + redis: + replicas: 1 + auth: + secretPath: redis-auth diff --git a/projects/gitea/project.yml b/projects/gitea/project.yml index a02531de..f9cd0c26 100644 --- a/projects/gitea/project.yml +++ b/projects/gitea/project.yml @@ -26,3 +26,6 @@ apps: keys: - secretkey - accesskey + - name: redis-auth + keys: + - password diff --git a/projects/gitea/values/gitea.yaml b/projects/gitea/values/gitea.yaml index 525f885d..38bbbbcd 100644 --- a/projects/gitea/values/gitea.yaml +++ b/projects/gitea/values/gitea.yaml @@ -136,6 +136,8 @@ gitea: PROXY_ENABLED: true PROXY_URL: "http://proxy-squid.proxy.svc.cluster.local:3128" PROXY_HOSTS: "github.com" + queue: + CONN_STR: "redis+cluster://rfs-gitea-redis.gitea.svc.cluster.local:6379/0" additionalConfigFromEnvs: - name: GITEA__DATABASE__PASSWD