From 11716394e1e2a28000def376ada495f3f69a2aef Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Thu, 18 Apr 2024 13:51:09 +0200 Subject: [PATCH] split services fort traefik --- .../03-traefik/base/traefik-service.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/infrastructure/03-traefik/base/traefik-service.yaml b/infrastructure/03-traefik/base/traefik-service.yaml index d426944..c24bdf3 100644 --- a/infrastructure/03-traefik/base/traefik-service.yaml +++ b/infrastructure/03-traefik/base/traefik-service.yaml @@ -1,7 +1,56 @@ apiVersion: v1 kind: Service +metadata: + name: traefik-local + namespace: traefik +spec: + loadBalancerIP: 192.168.178.102 + loadBalancerClass: metallb + type: LoadBalancer + selector: + app: traefik + ports: + # Local + - name: web-local + port: 80 + protocol: TCP + targetPort: web-local + - name: websecure-local + port: 443 + protocol: TCP + targetPort: websecure-local + + - name: dns + port: 53 + protocol: UDP + targetPort: 53 + - name: traefik + port: 9000 + protocol: TCP + targetPort: traefik +--- +apiVersion: v1 +kind: Service metadata: name: traefik namespace: traefik spec: + loadBalancerIP: 192.168.178.102 type: LoadBalancer + selector: + app: traefik + ports: + # Front + - name: web-front + port: 8000 + protocol: TCP + targetPort: web-front + - name: websecure-front + port: 8443 + protocol: TCP + targetPort: websecure-front + + - name: dns + port: 53 + protocol: UDP + targetPort: 53 \ No newline at end of file