From de5146218c927b02ee28966d3b17f84102dcbe5d Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Wed, 25 Sep 2024 17:25:54 +0200 Subject: [PATCH] add ipv6 to metallb & make traefik use single ip --- metallb/base/metallb-ip-address-pool.yaml | 3 ++- traefik/base/002-traefik-services.yaml | 20 +++++--------------- traefik/base/002-traefik.yaml | 2 +- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/metallb/base/metallb-ip-address-pool.yaml b/metallb/base/metallb-ip-address-pool.yaml index 8e8064c..6523f6c 100644 --- a/metallb/base/metallb-ip-address-pool.yaml +++ b/metallb/base/metallb-ip-address-pool.yaml @@ -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 diff --git a/traefik/base/002-traefik-services.yaml b/traefik/base/002-traefik-services.yaml index 868a90f..d5182aa 100644 --- a/traefik/base/002-traefik-services.yaml +++ b/traefik/base/002-traefik-services.yaml @@ -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 diff --git a/traefik/base/002-traefik.yaml b/traefik/base/002-traefik.yaml index 277eb87..ad414df 100644 --- a/traefik/base/002-traefik.yaml +++ b/traefik/base/002-traefik.yaml @@ -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