traefik dualstack services

This commit is contained in:
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 name: traefik
namespace: traefik namespace: traefik
spec: 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 type: LoadBalancer

View File

@ -7,12 +7,13 @@ namePrefix: front-
resources: resources:
#### OVERLAYS for internal traefik only #### OVERLAYS for internal traefik only
### Traefik base ### Traefik base
- ../base - ../base
patches: patches:
- path: patches/traefik-service-patch.yaml
- path: patches/traefik-deployment-patch.yaml - path: patches/traefik-deployment-patch.yaml
- path: patches/nodeselector.yaml - path: patches/nodeselector.yaml
target: target:

View File

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