diff --git a/coder/resources/db/user.yaml b/coder/resources/db/user.yaml index e0d0327..5ee0a38 100644 --- a/coder/resources/db/user.yaml +++ b/coder/resources/db/user.yaml @@ -9,4 +9,4 @@ spec: secretName: coder-db-credentials privileges: OWNER secretTemplate: # Output secrets can be customized using standard Go templates - PQ_URL: "postgresql://{{.Role}}:{{.Password}}@app-cluster-pooler-rw.postgres.svc:5432/{{.Database}}?sslmode=require&search_path=coder" \ No newline at end of file + PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}?sslmode=require&search_path=coder" \ No newline at end of file diff --git a/ente/resources/museum/db/db.yaml b/ente/resources/museum/db/db.yaml new file mode 100644 index 0000000..16f5212 --- /dev/null +++ b/ente/resources/museum/db/db.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: db.movetokube.com/v1alpha1 +kind: Postgres +metadata: + name: ente +spec: + database: ente + dropOnDelete: false \ No newline at end of file diff --git a/ente/resources/museum/db/user.yaml b/ente/resources/museum/db/user.yaml new file mode 100644 index 0000000..ede54bd --- /dev/null +++ b/ente/resources/museum/db/user.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: db.movetokube.com/v1alpha1 +kind: PostgresUser +metadata: + name: ente +spec: + role: ente + database: ente + secretName: ente-db-credentials + privileges: OWNER \ No newline at end of file