From 1b8604db79b627b0a3f6bacb851a94fdbdda45ba Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Mon, 5 May 2025 09:42:02 -0700 Subject: [PATCH] Add Traefik README and update service configuration annotations --- infrastructure_setup/traefik/README.md | 7 +++++++ infrastructure_setup/traefik/traefik-service.yaml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 infrastructure_setup/traefik/README.md diff --git a/infrastructure_setup/traefik/README.md b/infrastructure_setup/traefik/README.md new file mode 100644 index 0000000..bd599b6 --- /dev/null +++ b/infrastructure_setup/traefik/README.md @@ -0,0 +1,7 @@ +# Traefik + +- https://doc.traefik.io/traefik/providers/kubernetes-ingress/ + +Ingress RDs can be create for any service. The routes specificed in the Ingress are added automatically to the Traefik proxy. + +Traefik serves all incoming network traffic on ports 80 and 443 to their appropriate services based on the route. diff --git a/infrastructure_setup/traefik/traefik-service.yaml b/infrastructure_setup/traefik/traefik-service.yaml index 84bff31..e0aaa6c 100644 --- a/infrastructure_setup/traefik/traefik-service.yaml +++ b/infrastructure_setup/traefik/traefik-service.yaml @@ -6,6 +6,7 @@ metadata: name: traefik namespace: kube-system annotations: + # Get a stable IP from MetalLB metallb.universe.tf/address-pool: production metallb.universe.tf/allow-shared-ip: traefik-lb labels: @@ -24,4 +25,5 @@ spec: - name: websecure port: 443 targetPort: websecure - externalTrafficPolicy: Local \ No newline at end of file + externalTrafficPolicy: Local + \ No newline at end of file