add ipv6 to metallb & make traefik use single ip
This commit is contained in:
parent
2ab3f6eaab
commit
de5146218c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user