add database extension

issue: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/issues/86
This commit is contained in:
RNRod 2023-07-26 21:06:07 +02:00
parent 177e7dcb9d
commit 5501b4cc07
3 changed files with 30 additions and 0 deletions

View File

@ -20,6 +20,11 @@ istio:
service: gitea-ssh service: gitea-ssh
port: 22 port: 22
database:
enabled: true
name: gitea-postgres
instance: postgres
replicaCount: 1 replicaCount: 1
clusterDomain: cluster.local clusterDomain: cluster.local

View File

@ -0,0 +1,16 @@
---
database:
templates:
- |
---
apiVersion: kinda.rocks/v1beta1
kind: Database
metadata:
name: "{{ .Values.name }}"
spec:
secretName: "{{ .Values.name }}-creds"
instance: "{{ .Values.instance }}"
deletionProtected: false
backup:
enable: false
cron: 0 0 * * *

View File

@ -71,6 +71,14 @@ templates:
inherit: inherit:
- template: default-common-values - template: default-common-values
- template: default-env-values - template: default-env-values
ext-database:
dependencies:
- chart: bedag/raw
version: 2.0.0
alias: database
values:
- '{{ requiredEnv "PWD" }}/common/values.database.yaml'
# ---------------------------- # ----------------------------
# -- Releases # -- Releases
# ---------------------------- # ----------------------------
@ -248,6 +256,7 @@ templates:
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets
- template: ext-istio-resource - template: ext-istio-resource
- template: ext-database
funkwhale: &funkwhale funkwhale: &funkwhale
name: funkwhale name: funkwhale