From 4220e6968faa971b7147e2b371ec048039ad9dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 22 Aug 2024 15:41:05 +0300 Subject: [PATCH] Add podmonitor --- templates/podmonitor.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/podmonitor.yaml diff --git a/templates/podmonitor.yaml b/templates/podmonitor.yaml new file mode 100644 index 0000000..ade9eba --- /dev/null +++ b/templates/podmonitor.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: hello-gin +spec: + selector: + matchLabels: + app: hello-gin + podMetricsEndpoints: + - targetPort: 8000