fix(cloudnative-pg): add namespaces to cluster resources
This commit is contained in:
parent
95f9682843
commit
700fc7307c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue