diff --git a/cloudnativepg/kustomization.yaml b/cloudnativepg/kustomization.yaml new file mode 100644 index 0000000..62c116b --- /dev/null +++ b/cloudnativepg/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argocd + +resources: + - podmonitor.yaml diff --git a/cloudnativepg/podmonitor.yaml b/cloudnativepg/podmonitor.yaml new file mode 100644 index 0000000..ae1cc8c --- /dev/null +++ b/cloudnativepg/podmonitor.yaml @@ -0,0 +1,13 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: cnpg-controller-manager + namespace: cnpg-system + labels: + team: core +spec: + selector: + matchLabels: + app.kubernetes.io/name: cloudnative-pg + podMetricsEndpoints: + - port: metrics