From f1367e5c9b5d25cd09aa7e5869ac81c880c97b81 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 4 Dec 2024 20:45:17 +0100 Subject: [PATCH] feat(meali): setup infra --- meali/kustomization.yaml | 9 +++++++++ meali/resources/db/db.yaml | 8 ++++++++ meali/resources/db/user.yaml | 10 ++++++++++ meali/resources/namespace.yaml | 7 +++++++ 4 files changed, 34 insertions(+) create mode 100644 meali/kustomization.yaml create mode 100644 meali/resources/db/db.yaml create mode 100644 meali/resources/db/user.yaml create mode 100644 meali/resources/namespace.yaml diff --git a/meali/kustomization.yaml b/meali/kustomization.yaml new file mode 100644 index 0000000..0aa2be4 --- /dev/null +++ b/meali/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: meali + +resources: + - resources/namespace.yaml + - resources/db/db.yaml + - resources/db/user.yaml diff --git a/meali/resources/db/db.yaml b/meali/resources/db/db.yaml new file mode 100644 index 0000000..c1b441b --- /dev/null +++ b/meali/resources/db/db.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: db.movetokube.com/v1alpha1 +kind: Postgres +metadata: + name: meali +spec: + database: meali + dropOnDelete: false diff --git a/meali/resources/db/user.yaml b/meali/resources/db/user.yaml new file mode 100644 index 0000000..09fb7d8 --- /dev/null +++ b/meali/resources/db/user.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: db.movetokube.com/v1alpha1 +kind: PostgresUser +metadata: + name: meali +spec: + role: meali + database: meali + secretName: db-credentials + privileges: OWNER diff --git a/meali/resources/namespace.yaml b/meali/resources/namespace.yaml new file mode 100644 index 0000000..33e08f6 --- /dev/null +++ b/meali/resources/namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: meali + labels: + prometheus: default