diff --git a/coder/kustomization.yaml b/coder/kustomization.yaml index 114a018..22f0e67 100644 --- a/coder/kustomization.yaml +++ b/coder/kustomization.yaml @@ -7,6 +7,8 @@ resources: - "resources/namespace.yaml" - "resources/http_routes.yaml" - "resources/secret.yaml" + - "resources/db/db.yaml" + - "resources/db/user.yaml" helmCharts: - name: coder diff --git a/coder/resources/db/db.yaml b/coder/resources/db/db.yaml new file mode 100644 index 0000000..d3f3629 --- /dev/null +++ b/coder/resources/db/db.yaml @@ -0,0 +1,7 @@ +apiVersion: db.movetokube.com/v1alpha1 +kind: Postgres +metadata: + name: coder +spec: + database: coder + dropOnDelete: false \ No newline at end of file diff --git a/coder/resources/db/user.yaml b/coder/resources/db/user.yaml new file mode 100644 index 0000000..cfba44c --- /dev/null +++ b/coder/resources/db/user.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: db.movetokube.com/v1alpha1 +kind: PostgresUser +metadata: + name: coder +spec: + role: coder + database: coder + secretName: coder-db-credentials + privileges: OWNER \ No newline at end of file