add(gitea): redis

This commit is contained in:
nold 2023-07-24 15:46:08 +02:00
parent c81ba151cc
commit 5cb6653626
3 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -26,3 +26,6 @@ apps:
keys: keys:
- secretkey - secretkey
- accesskey - accesskey
- name: redis-auth
keys:
- password

View file

@ -136,6 +136,8 @@ gitea:
PROXY_ENABLED: true PROXY_ENABLED: true
PROXY_URL: "http://proxy-squid.proxy.svc.cluster.local:3128" PROXY_URL: "http://proxy-squid.proxy.svc.cluster.local:3128"
PROXY_HOSTS: "github.com" PROXY_HOSTS: "github.com"
queue:
CONN_STR: "redis+cluster://rfs-gitea-redis.gitea.svc.cluster.local:6379/0"
additionalConfigFromEnvs: additionalConfigFromEnvs:
- name: GITEA__DATABASE__PASSWD - name: GITEA__DATABASE__PASSWD