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