From 887424946f0dec12000726ec4c580abea3f07fac Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 4 Jun 2022 16:08:41 +0200 Subject: [PATCH] Add postgres --- infrastructure/kustomization.yaml | 1 + infrastructure/postgres/kustomization.yaml | 6 ++++++ infrastructure/postgres/namespace.yaml | 4 ++++ infrastructure/postgres/release.yaml | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 infrastructure/postgres/kustomization.yaml create mode 100644 infrastructure/postgres/namespace.yaml create mode 100644 infrastructure/postgres/release.yaml diff --git a/infrastructure/kustomization.yaml b/infrastructure/kustomization.yaml index 6896cd2..e6c033d 100644 --- a/infrastructure/kustomization.yaml +++ b/infrastructure/kustomization.yaml @@ -6,3 +6,4 @@ resources: - cert-manager - sealed-secrets - reflector + - postgres diff --git a/infrastructure/postgres/kustomization.yaml b/infrastructure/postgres/kustomization.yaml new file mode 100644 index 0000000..ecdb77f --- /dev/null +++ b/infrastructure/postgres/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: postgres +resources: + - namespace.yaml + - release.yaml diff --git a/infrastructure/postgres/namespace.yaml b/infrastructure/postgres/namespace.yaml new file mode 100644 index 0000000..427794c --- /dev/null +++ b/infrastructure/postgres/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: postgres diff --git a/infrastructure/postgres/release.yaml b/infrastructure/postgres/release.yaml new file mode 100644 index 0000000..0d1ce0a --- /dev/null +++ b/infrastructure/postgres/release.yaml @@ -0,0 +1,21 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: postgres +spec: + releaseName: postgres + chart: + spec: + chart: postgresql + sourceRef: + kind: HelmRepository + name: bitnami + namespace: flux-system + version: "11.6.3" + interval: 1h0m0s + install: + remediation: + retries: 3 + values: + global: + storageClass: hcloud-volumes