traefik dualstack services

This commit is contained in:
Steffen Illium 2024-03-29 20:47:19 +01:00
parent 32a44836ac
commit 555871bbee
4 changed files with 24 additions and 20 deletions

View File

@ -4,21 +4,4 @@ metadata:
name: traefik
namespace: traefik
spec:
loadBalancerIP: 192.168.178.102
ports:
- name: web
port: 80
protocol: TCP
targetPort: web
- name: websecure
port: 443
protocol: TCP
targetPort: websecure
- name: dns
port: 53
protocol: UDP
targetPort: dns
selector:
app.kubernetes.io/instance: lcl-default
app.kubernetes.io/name: traefik
type: LoadBalancer

View File

@ -13,6 +13,7 @@ resources:
patches:
- path: patches/traefik-service-patch.yaml
- path: patches/traefik-deployment-patch.yaml
- path: patches/nodeselector.yaml
target:

View File

@ -4,6 +4,7 @@ metadata:
name: traefik
namespace: traefik
spec:
type: NodePort
ports:
- name: web
port: 80
@ -20,5 +21,3 @@ spec:
protocol: UDP
targetPort: dns
nodeport: 53

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: traefik
namespace: traefik
spec:
loadBalancerIP: 192.168.178.2
type: LoadBalancer
ports:
- name: web
port: 80
protocol: TCP
targetPort: web
- name: websecure
port: 443
protocol: TCP
targetPort: websecure
- name: dns
port: 53
protocol: UDP
targetPort: dns