We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b11792 commit 9ba893fCopy full SHA for 9ba893f
manifests/postgres/components/metrics/kustomization.yaml
@@ -0,0 +1,29 @@
1
+---
2
+
3
+apiVersion: kustomize.config.k8s.io/v1alpha1
4
+kind: Component
5
6
7
+patches:
8
+ # yamllint disable rule:indentation
9
+ - patch: |-
10
11
+ - op: add
12
+ path: /spec/monitoring
13
+ value:
14
+ enablePodMonitor: true
15
16
17
+ path: /spec/monitoring/podMonitorRelabelings
18
19
+ - sourceLabels: ["__meta_kubernetes_pod_label_cnpg_io_cluster"]
20
+ targetLabel: cluster
21
+ action: replace
22
+ - sourceLabels: ["__meta_kubernetes_pod_name"]
23
+ targetLabel: instance
24
25
+ # yamllint enable rule:indentation
26
+ target:
27
+ group: postgresql.cnpg.io
28
+ version: v1
29
+ kind: Cluster
0 commit comments