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>
20 lines
320 B
YAML
20 lines
320 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
namespace: auth
|
|
name: gateway
|
|
labels:
|
|
release: kps
|
|
spec:
|
|
jobLabel: app
|
|
selector:
|
|
matchLabels:
|
|
app: gateway
|
|
namespaceSelector:
|
|
matchNames:
|
|
- auth
|
|
endpoints:
|
|
- port: http
|
|
path: /metrics
|
|
interval: 15s
|