diff --git a/homelab/postgres-cluster.yml b/homelab/postgres-cluster.yml index 9ad5c63..2d32f53 100644 --- a/homelab/postgres-cluster.yml +++ b/homelab/postgres-cluster.yml @@ -48,6 +48,9 @@ spec: - name: authentik databases: - authentik + - name: immich + databases: + - immich --- apiVersion: v1 kind: ConfigMap @@ -57,3 +60,22 @@ data: init.sql: | \c authentik GRANT CREATE ON SCHEMA public TO "authentik"; + \c immich + GRANT CREATE ON SCHEMA public TO "immich"; +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: hippo +spec: + selector: + matchLabels: + postgres-operator.crunchydata.com/cluster: hippo + postgres-operator.crunchydata.com/crunchy-postgres-exporter: "true" + podTargetLabels: + - postgres-operator.crunchydata.com/cluster + - postgres-operator.crunchydata.com/role + - postgres-operator.crunchydata.com/instance + podMetricsEndpoints: + - port: exporter + interval: 30s