immich database, podmonitor for postgres
This commit is contained in:
parent
2ab01e2244
commit
174568769d
|
@ -48,6 +48,9 @@ spec:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
databases:
|
databases:
|
||||||
- authentik
|
- authentik
|
||||||
|
- name: immich
|
||||||
|
databases:
|
||||||
|
- immich
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -57,3 +60,22 @@ data:
|
||||||
init.sql: |
|
init.sql: |
|
||||||
\c authentik
|
\c authentik
|
||||||
GRANT CREATE ON SCHEMA public TO "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