From 301de982cc22cd7cfbf062777bcea8fb4f1b78b4 Mon Sep 17 00:00:00 2001 From: RNRod Date: Wed, 26 Jul 2023 22:50:08 +0200 Subject: [PATCH] migrate gitea to a dedicated database issue: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/issues/86 --- badhouseplants/values/secrets.gitea.yaml | 6 ++++-- badhouseplants/values/values.gitea.yaml | 9 ++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/badhouseplants/values/secrets.gitea.yaml b/badhouseplants/values/secrets.gitea.yaml index 4a8e9f8..86388fa 100644 --- a/badhouseplants/values/secrets.gitea.yaml +++ b/badhouseplants/values/secrets.gitea.yaml @@ -13,6 +13,8 @@ gitea: config: mailer: ENABLED: ENC[AES256_GCM,data:C2qWn4E=,iv:APUvrTInDdxf1tJ5eFSgxUej8e085HZalsiHY6/Fryc=,tag:MW3KhfU+25EWDzM/+QOZ5A==,type:bool] + database: + PASSWD: ENC[AES256_GCM,data:EVawxgpBgJ1ZlU4F+KFlJZXHq/4=,iv:ZUC7YBQ+RXNKLFEZzAeXfoGqBv9ilGw6Q5ynspAsc78=,tag:Wpb3awtdRLLBNYmmuTUCrA==,type:str] oauth: - name: ENC[AES256_GCM,data:iR9QX2Si,iv:B+4ixm+dOwAnXFCYq2BnExnfVDGooonBCiHpyxfkLP0=,tag:r7CZbpL9uQ1QjAFNiFfOsw==,type:str] provider: ENC[AES256_GCM,data:byE4rELH,iv:lcvbNSZMD9EMA4CmJF2mvN33a5fmXWzP4++PnNPK+fg=,tag:2wfHrpp/bJJOImBq5ULzqw==,type:str] @@ -33,8 +35,8 @@ sops: Ym5KMWw5ZDBBZzJBcHBXdFZiaDZpU0UKNl/GkGP25D7z5a8mVBmoSTfOM3EzymPN WW62zIoBHlwLxF9nwj1xCCtcL1XKgiB8nnn4IrY3ljqFc0VkxD9dnQ== -----END AGE ENCRYPTED FILE----- - lastmodified: "2023-05-21T12:13:23Z" - mac: ENC[AES256_GCM,data:9BHUjJKb4n0EeIrpDytKouAASi2v92bPlwxgb0Ewf1bMv8zyZFwAfjhVx0EbPLzvdB7QOPPxvljn1YRNzRxxnQAc1d88S5h0xIRH+ybek4xdB5HlBLcdH97GGUnfHbxKKT0BJ6a4OCxWMYM0YuHl5VJ+jJXChG55UzTnDrY6vgA=,iv:0ROT1b0e6C5ZbmZby1REl8vQwCx+1LG0sjnmOBefP/k=,tag:Mr+0Dtg5jzeSlb09v+yx7g==,type:str] + lastmodified: "2023-07-26T20:46:45Z" + mac: ENC[AES256_GCM,data:ZZ5KeUmc5FqFIfZKkVfmu9s2YWCbFULgHiF8JMjgyIYqnUkE1gSPq7PqCJFnHuDmg9b9QKw7KbT1SgCTY9UXcZ2h8xQGQ6SrU3oDBVLGG+tJovTqAgeEAy3WUqSensAw86OHVbQafC+urO7pW83suGVBp19vhT7lNm3tpM43i08=,iv:RXnqoZy/p8wJEDV2jtbzQWfvAOJpAEc3SFso+bVtZsg=,tag:vBvtEm9Q/pEKeD9ek+xWVA==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.7.3 diff --git a/badhouseplants/values/values.gitea.yaml b/badhouseplants/values/values.gitea.yaml index ceefb4a..f19a174 100644 --- a/badhouseplants/values/values.gitea.yaml +++ b/badhouseplants/values/values.gitea.yaml @@ -25,6 +25,8 @@ database: name: gitea-postgres instance: postgres + + replicaCount: 1 clusterDomain: cluster.local @@ -54,7 +56,7 @@ memcached: postgresql: auth: postgresPassword: check - enabled: true + enabled: false global: postgresql: servicePort: 5432 @@ -73,6 +75,11 @@ gitea: serviceMonitor: enabled: false config: + database: + DB_TYPE: postgres + HOST: postgres-postgresql.database-service.svc.cluster.local + NAME: gitea-service-gitea-postgres + USER: gitea-service-gitea-postgres APP_NAME: Bad Houseplants Gitea ui: meta: