From b862c22c43b3d6d4e48c0708883707b2d0fae748 Mon Sep 17 00:00:00 2001 From: Yadunand Prem Date: Mon, 4 Nov 2024 19:19:10 -0500 Subject: [PATCH] feat: deploy traefik feat: deploy traefik --- infra/controllers/kustomization.yaml | 2 +- infra/controllers/traefik.yaml | 42 +++++++++++++--------------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/infra/controllers/kustomization.yaml b/infra/controllers/kustomization.yaml index e4a406d..bec697f 100644 --- a/infra/controllers/kustomization.yaml +++ b/infra/controllers/kustomization.yaml @@ -3,4 +3,4 @@ kind: Kustomization resources: - metallb.yaml - longhorn.yaml - # - traefik.yaml + - traefik.yaml diff --git a/infra/controllers/traefik.yaml b/infra/controllers/traefik.yaml index 7d74ff7..c4589a8 100644 --- a/infra/controllers/traefik.yaml +++ b/infra/controllers/traefik.yaml @@ -38,28 +38,26 @@ spec: value: "ingress" effect: "NoSchedule" service: - type: ClusterIP + type: LoadBalancer ingressRoute: dashboard: enabled: true ---- -# Done with the help of claude -apiVersion: v1 -kind: Service -metadata: - name: traefik-external - namespace: traefik-system -spec: - type: ClusterIP - externalIPs: - - "128.199.163.115" - ports: - - name: web - port: 80 - targetPort: 8000 - - name: websecure - port: 443 - targetPort: 8443 - selector: - app.kubernetes.io/name: traefik - app.kubernetes.io/instance: traefik +# --- +# # Done with the help of claude +# apiVersion: v1 +# kind: Service +# metadata: +# name: traefik-external +# namespace: traefik-system +# spec: +# type: LoadBalancer +# ports: +# - name: web +# port: 80 +# targetPort: web +# - name: websecure +# port: 443 +# targetPort: websecure +# selector: +# app.kubernetes.io/name: traefik +# app.kubernetes.io/instance: traefik