metrics: Prometheus endpoint on its own --metrics listener; the pod exposes it inside the cluster only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -52,6 +52,7 @@ spec:
|
||||
--no-login-link \
|
||||
--difficulty "${DIFFICULTY:-24}" \
|
||||
--http 0.0.0.0:8080 \
|
||||
--metrics 0.0.0.0:9090 \
|
||||
--listen /ip4/0.0.0.0/tcp/4001 \
|
||||
--listen /ip4/0.0.0.0/udp/4001/quic-v1 \
|
||||
--announce "/dns4/${PUBLIC_HOST}/tcp/${PUBLIC_PORT}" \
|
||||
@@ -88,6 +89,12 @@ spec:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
# Prometheus metrics. No Service or IngressRoute points here, so the
|
||||
# port is reachable only inside the cluster (by pod IP); it has no
|
||||
# login. Scrape it with a PodMonitor or a pod annotation.
|
||||
- name: metrics
|
||||
containerPort: 9090
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/v1/status
|
||||
|
||||
Reference in New Issue
Block a user