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