From c585e7497d7955510d0a1e90a69f1bf2afeac411 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 4 Jun 2022 15:41:02 +0200 Subject: [PATCH] Add traefik ingress --- infrastructure/traefik/ingress.yaml | 17 +++++++++++++++++ infrastructure/traefik/kustomization.yaml | 1 + 2 files changed, 18 insertions(+) create mode 100644 infrastructure/traefik/ingress.yaml diff --git a/infrastructure/traefik/ingress.yaml b/infrastructure/traefik/ingress.yaml new file mode 100644 index 0000000..eba77d5 --- /dev/null +++ b/infrastructure/traefik/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: traefik-dashboard + namespace: kube-system +spec: + entryPoints: + - web + - websecure + routes: + - match: Host(`traefik.kjuulh.app`) # Hostname to match + kind: Rule + services: # Service to redirect requests to + - name: api@internal # Special service created by Traefik pod + kind: TraefikService + tls: + secretName: clank-cert diff --git a/infrastructure/traefik/kustomization.yaml b/infrastructure/traefik/kustomization.yaml index 1bc1eff..76b9c4b 100644 --- a/infrastructure/traefik/kustomization.yaml +++ b/infrastructure/traefik/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - helmconfig.yaml + - ingress.yaml