From f2195b5f607cc0c144a0c045fc9bfdfa36b1c722 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 11 Jul 2022 22:16:55 +0100 Subject: [PATCH] vikunja: add postgres database config --- basic/apps/do/vikunja-values-configmap.yaml | 7 ++++++- templates/stackspin-vikunja-variables.yaml.jinja | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/stackspin-vikunja-variables.yaml.jinja diff --git a/basic/apps/do/vikunja-values-configmap.yaml b/basic/apps/do/vikunja-values-configmap.yaml index f704f9f..ca4ed10 100644 --- a/basic/apps/do/vikunja-values-configmap.yaml +++ b/basic/apps/do/vikunja-values-configmap.yaml @@ -27,6 +27,10 @@ data: frontendurl: "https://do.${domain}" motd: "Please allow public profile discovery in settings!" timezone: "DE" + database: + host: db + type: postgres + password: "${postgres_password}" ingress: main: enabled: true @@ -42,9 +46,10 @@ data: - secretName: vikunja-tls hosts: - "do.${domain}" - - "tmpdo.${domain}" additionalContainers: api: image: vikunja/api:0.18.1 frontend: image: vikunja/frontend:0.18.2 + postgresql: + enabled: true diff --git a/templates/stackspin-vikunja-variables.yaml.jinja b/templates/stackspin-vikunja-variables.yaml.jinja new file mode 100644 index 0000000..f0d182e --- /dev/null +++ b/templates/stackspin-vikunja-variables.yaml.jinja @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Secret +metadata: + name: stackspin-vikunja-variables +data: + postgres_password: "{{ 32 | generate_password | b64encode }}"