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