From 1d0346d5e2be4bc2fedf72fabc0935869d90f495 Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Sat, 26 Jul 2025 15:51:46 +0200 Subject: [PATCH] helm database postgresql - add Chart.lock to .gitignore - update helmfile.yaml with database - add values.yaml with postgresql - add Chart.yaml with postgresql --- .gitignore | 1 + helm/charts/02-database/Chart.yaml | 11 +++++++++++ helm/charts/02-database/values.yaml | 13 +++++++++++++ helm/helmfile.yaml | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 helm/charts/02-database/Chart.yaml create mode 100644 helm/charts/02-database/values.yaml diff --git a/.gitignore b/.gitignore index a306920..cbce7d6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ cert/ http/*/http-client.env.json helm/values/*/ +helm/charts/02-database/Chart.lock diff --git a/helm/charts/02-database/Chart.yaml b/helm/charts/02-database/Chart.yaml new file mode 100644 index 0000000..c5c80c5 --- /dev/null +++ b/helm/charts/02-database/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: hlaeja-database +description: A Helm chart for the hlaeja database chart wrapper +version: 0.1.0 + +dependencies: + + # https://artifacthub.io/packages/helm/bitnami/postgresql + - name: postgresql + version: 16.7.21 + repository: "oci://registry-1.docker.io/bitnamicharts" diff --git a/helm/charts/02-database/values.yaml b/helm/charts/02-database/values.yaml new file mode 100644 index 0000000..3dd6505 --- /dev/null +++ b/helm/charts/02-database/values.yaml @@ -0,0 +1,13 @@ +postgresql: + auth: + postgresPassword: mySecretPassword + primary: + persistence: + size: 10Gi + resources: + requests: + memory: 512Mi + cpu: 250m +# service: +# type: LoadBalancer +# loadBalancerIP: 10.0.3.31 diff --git a/helm/helmfile.yaml b/helm/helmfile.yaml index 8f9fc56..e1e548a 100644 --- a/helm/helmfile.yaml +++ b/helm/helmfile.yaml @@ -4,3 +4,9 @@ releases: chart: ./charts/01-secrets values: [] historyMax: 3 + + - name: database + namespace: hlaeja-testing + chart: ./charts/02-database + values: [] + historyMax: 3