Add podmonitor

This commit is contained in:
2024-08-22 15:41:05 +03:00
parent 5bb9f79d56
commit 4220e6968f

11
templates/podmonitor.yaml Normal file
View File

@@ -0,0 +1,11 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: hello-gin
spec:
selector:
matchLabels:
app: hello-gin
podMetricsEndpoints:
- targetPort: 8000