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