Gonçalo Rodrigues f5f2251e24 fix(k8s): move ServiceMonitor manifests to k8s/monitoring/ subdirectory
The k8s/*.yaml glob in each skaffold.yaml picks up servicemonitor.yaml
and fails when monitoring is disabled (CRD not installed). Moving them
to k8s/monitoring/ keeps the config but excludes them from the default
deploy. Apply manually when enable_monitoring=true.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 22:43:04 +01:00

20 lines
318 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: api
namespace: finance
labels:
release: kps
spec:
jobLabel: app
selector:
matchLabels:
app: api
namespaceSelector:
matchNames:
- finance
endpoints:
- port: http
path: /metrics
interval: 15s