fix(cloudnative-pg): add namespaces to cluster resources

This commit is contained in:
SeanOMik 2024-10-16 19:52:14 -04:00
parent 95f9682843
commit 700fc7307c
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
3 changed files with 3 additions and 3 deletions

View File

@ -4,9 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule kind: PrometheusRule
metadata: metadata:
name: cloudnative-pg-rules name: cloudnative-pg-rules
labels: namespace: database
prometheus: k8s
role: alert-rules
spec: spec:
groups: groups:
- name: cloudnative-pg.rules - name: cloudnative-pg.rules

View File

@ -4,6 +4,7 @@ apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup kind: ScheduledBackup
metadata: metadata:
name: postgres name: postgres
namespace: database
spec: spec:
schedule: "@daily" schedule: "@daily"
immediate: true immediate: true

View File

@ -37,6 +37,7 @@ spec:
interval: 10m interval: 10m
path: ./kubernetes/main/apps/database/postgresql/cluster path: ./kubernetes/main/apps/database/postgresql/cluster
prune: true prune: true
targetNamespace: database
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: home-cluster name: home-cluster