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
|
namespace: metallb-system
|
||||||
spec:
|
spec:
|
||||||
addresses:
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik-dashboard-service
|
name: traefik-service
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- name: traefik-dashboard
|
||||||
|
port: 8080
|
||||||
targetPort: dashboard
|
targetPort: dashboard
|
||||||
selector:
|
- name: traefik-web
|
||||||
app: traefik
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: traefik-web-service
|
|
||||||
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
externalTrafficPolicy: Local
|
|
||||||
ports:
|
|
||||||
- targetPort: web
|
|
||||||
port: 80
|
port: 80
|
||||||
|
targetPort: web
|
||||||
selector:
|
selector:
|
||||||
app: traefik
|
app: traefik
|
||||||
|
@ -22,7 +22,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- --api.insecure
|
- --api.insecure
|
||||||
- --providers.kubernetesingress
|
- --providers.kubernetesingress
|
||||||
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service
|
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
|
Loading…
Reference in New Issue
Block a user