From b13c4ef86696f587851366f095a74c3549693c4f Mon Sep 17 00:00:00 2001 From: Marco van Zijl Date: Sat, 10 May 2025 10:11:16 +0200 Subject: [PATCH] Add namespace and priority class to cloudnativepg configuration; enable PodMonitor monitoring --- applications/templates/cloudnativepg.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/templates/cloudnativepg.yaml b/applications/templates/cloudnativepg.yaml index fc2c710..9756a47 100644 --- a/applications/templates/cloudnativepg.yaml +++ b/applications/templates/cloudnativepg.yaml @@ -42,8 +42,10 @@ apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: pg-cluster + namespace: cnpg-system spec: instances: 2 + priorityClassName: homelab-critical resources: requests: memory: 128Mi @@ -61,6 +63,8 @@ spec: random_page_cost: "1.1" effective_io_concurrency: "300" work_mem: "1MB" + monitoring: + enablePodMonitor: true storage: size: 50Gi storageClass: local-path