make traefik see true ips
This commit is contained in:
		@@ -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
 | 
					apiVersion: monitoring.coreos.com/v1
 | 
				
			||||||
kind: PodMonitor
 | 
					kind: ServiceMonitor
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: traefik-podmonitor
 | 
					  name: traefik-servicemonitor
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    app: traefik
 | 
					    app: traefik
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      app.kubernetes.io/name: traefik
 | 
					      app.kubernetes.io/name: traefik
 | 
				
			||||||
  namespaceSelector:
 | 
					  endpoints:
 | 
				
			||||||
    matchNames:
 | 
					 | 
				
			||||||
      - traefik-system
 | 
					 | 
				
			||||||
  podMetricsEndpoints:
 | 
					 | 
				
			||||||
    - port: metrics
 | 
					    - port: metrics
 | 
				
			||||||
      path: /metrics
 | 
					      path: /metrics
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,6 +101,12 @@ ports:
 | 
				
			|||||||
      default: true
 | 
					      default: true
 | 
				
			||||||
    exposedPort: 853
 | 
					    exposedPort: 853
 | 
				
			||||||
    protocol: TCP
 | 
					    protocol: TCP
 | 
				
			||||||
 | 
					  metrics:
 | 
				
			||||||
 | 
					    port: 9100
 | 
				
			||||||
 | 
					    expose:
 | 
				
			||||||
 | 
					      default: true
 | 
				
			||||||
 | 
					    exposedPort: 9100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -122,6 +128,5 @@ service:
 | 
				
			|||||||
  # Additional entries here will be added to the service spec.
 | 
					  # Additional entries here will be added to the service spec.
 | 
				
			||||||
  # Cannot contain type, selector or ports entries.
 | 
					  # Cannot contain type, selector or ports entries.
 | 
				
			||||||
  spec:
 | 
					  spec:
 | 
				
			||||||
    # externalTrafficPolicy: Local
 | 
					 | 
				
			||||||
    loadBalancerIP: 192.168.3.1
 | 
					    loadBalancerIP: 192.168.3.1
 | 
				
			||||||
 | 
					    externalTrafficPolicy: Local
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user