make traefik see true ips

This commit is contained in:
2025-11-03 16:19:15 +01:00
parent 6c819430c3
commit 8ab76d5a70
2 changed files with 4 additions and 21 deletions

View File

@@ -1,29 +1,13 @@
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: traefik-servicemonitor
# labels:
# app: traefik
# spec:
# selector:
# matchLabels:
# app.kubernetes.io/name: traefik
# endpoints:
# - port: metrics
# path: /metrics
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
kind: ServiceMonitor
metadata:
name: traefik-podmonitor
name: traefik-servicemonitor
labels:
app: traefik
spec:
selector:
matchLabels:
app.kubernetes.io/name: traefik
namespaceSelector:
matchNames:
- traefik-system
podMetricsEndpoints:
endpoints:
- port: metrics
path: /metrics

View File

@@ -122,6 +122,5 @@ service:
# Additional entries here will be added to the service spec.
# Cannot contain type, selector or ports entries.
spec:
# externalTrafficPolicy: Local
loadBalancerIP: 192.168.3.1
externalTrafficPolicy: Local