add database extension
issue: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/issues/86
This commit is contained in:
parent
177e7dcb9d
commit
5501b4cc07
@ -20,6 +20,11 @@ istio:
|
||||
service: gitea-ssh
|
||||
port: 22
|
||||
|
||||
database:
|
||||
enabled: true
|
||||
name: gitea-postgres
|
||||
instance: postgres
|
||||
|
||||
replicaCount: 1
|
||||
clusterDomain: cluster.local
|
||||
|
||||
|
16
common/values.database.yaml
Normal file
16
common/values.database.yaml
Normal 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 * * *
|
@ -71,6 +71,14 @@ templates:
|
||||
inherit:
|
||||
- template: default-common-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
|
||||
# ----------------------------
|
||||
@ -248,6 +256,7 @@ templates:
|
||||
- template: default-env-values
|
||||
- template: default-env-secrets
|
||||
- template: ext-istio-resource
|
||||
- template: ext-database
|
||||
|
||||
funkwhale: &funkwhale
|
||||
name: funkwhale
|
||||
|
Reference in New Issue
Block a user