matrix.hackerspace.pl: use external postgres

Change-Id: Ie0bb76a4200f905bfd0c065cde81283271f8397a
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1483
Reviewed-by: informatic <informatic@hackerspace.pl>
diff --git a/app/matrix/matrix.hackerspace.pl.jsonnet b/app/matrix/matrix.hackerspace.pl.jsonnet
index 931901a..bf7f5bf 100644
--- a/app/matrix/matrix.hackerspace.pl.jsonnet
+++ b/app/matrix/matrix.hackerspace.pl.jsonnet
@@ -35,6 +35,7 @@
             },
             db+: {
                 password: std.strReplace(importstr "secrets/plain/media-repo-matrix-postgres", "\n", ""),
+                host: "bc01n05.hswaw.net",
             },
         },
         coturn+: {
@@ -44,6 +45,11 @@
                 loadBalancerIP: "185.236.240.59",
             },
         },
+
+        postgres+: {
+            enable: false,
+            host: "bc01n05.hswaw.net",
+        },
     },
 
     riot+: {
@@ -91,55 +97,6 @@
         },
     },
 
-    // Bump up storage to 200Gi from default 100Gi, use different name.  The
-    // new name corresponds to a manually migrated and sized-up PVC that
-    // contains data from the original waw3-postgres PVC.
-    postgres3+: {
-        local psql = self,
-        volumeClaim+: {
-            metadata+: {
-                name: "waw3-postgres-2",
-            },
-            spec+: {
-                resources+: {
-                    requests+: {
-                        storage: "200Gi",
-                    },
-                },
-            },
-        },
-        tempVC: kube.PersistentVolumeClaim(psql.makeName("tempvc")) {
-            metadata+: psql.metadata,
-            spec+: {
-                storageClassName: psql.cfg.storageClassName,
-                accessModes: [ "ReadWriteOnce" ],
-                resources: {
-                    requests: {
-                        storage: "200Gi",
-                    },
-                },
-            },
-        },
-        deployment+: {
-            spec+: {
-                template+: {
-                    spec+: {
-                        volumes_+: {
-                            temp: kube.PersistentVolumeClaimVolume(psql.tempVC),
-                        },
-                        containers_+: {
-                            postgres+: {
-                                volumeMounts_+: {
-                                    temp: { mountPath: "/mnt/tmp/" },
-                                },
-                            },
-                        },
-                    },
-                },
-            },
-        },
-    },
-
     appservices: {
         "irc-freenode": irc.AppServiceIrc("freenode") {
             cfg+: {