immich database, podmonitor for postgres
This commit is contained in:
parent
2ab01e2244
commit
174568769d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue