add ipv6 to metallb & make traefik use single ip

This commit is contained in:
Mans Ziesel 2024-09-25 17:25:54 +02:00
parent 2ab3f6eaab
commit de5146218c
3 changed files with 8 additions and 17 deletions

View File

@ -5,4 +5,5 @@ metadata:
namespace: metallb-system
spec:
addresses:
- 192.168.10.160-192.168.10.199
- 192.168.10.150-192.168.10.199
- 2a02:a442:ba11:1:150::/122

View File

@ -1,26 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: traefik-dashboard-service
name: traefik-service
spec:
type: LoadBalancer
ports:
- port: 8080
- name: traefik-dashboard
port: 8080
targetPort: dashboard
selector:
app: traefik
---
apiVersion: v1
kind: Service
metadata:
name: traefik-web-service
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- targetPort: web
- name: traefik-web
port: 80
targetPort: web
selector:
app: traefik

View File

@ -22,7 +22,7 @@ spec:
args:
- --api.insecure
- --providers.kubernetesingress
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
ports:
- name: web
containerPort: 80