Skip to content
Snippets Groups Projects
Verified Commit 6e54be52 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

local-cluster: Don't active pg instance service monitor by default

It's mostly probable that local clusters don't have a prometheus
operator deployed.
parent 16d29ee4
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
{{- $testing := $cluster_config.testing | default "false" -}}
{{- $roles := $cluster_config.roles | default $.Values.cloudnativePg.roles -}}
{{- $storage := $cluster_config.storage | default $.Values.cloudnativePg.storage | default dict -}}
{{- $enableMonitoring := $cluster_config.enableMonitoring | default $.Values.cloudnativePg.enableMonitoring -}}
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
......@@ -111,7 +112,7 @@ spec:
# size: 1Gi
monitoring:
enablePodMonitor: true
enablePodMonitor: {{ $enableMonitoring }}
{{- if and $cluster_config.backup $cluster_config.backup.enabled }}
# Backup properties
......
......@@ -77,6 +77,7 @@ cloudnativePg:
enabled: false
namespace: swh
testing: true
enableMonitoring: false
storage:
storageClass: standard
size: 1Gi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment