From e99761bd30c5a43ff2c00de91bec87d0301aaf44 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sat, 12 Oct 2024 20:05:18 +0200 Subject: [PATCH] switch from Ingress to IngressRoute & configure whoami ingress --- whoami/base/whoami-ingress.yaml | 54 +++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/whoami/base/whoami-ingress.yaml b/whoami/base/whoami-ingress.yaml index 4abb1c3..e58c212 100644 --- a/whoami/base/whoami-ingress.yaml +++ b/whoami/base/whoami-ingress.yaml @@ -1,15 +1,43 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress +# apiVersion: networking.k8s.io/v1 +# kind: Ingress +# metadata: +# name: whoami-ingress +# spec: +# rules: +# - http: +# paths: +# - path: / +# pathType: Prefix +# backend: +# service: +# name: whoami-traefik +# port: +# name: web +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute metadata: - name: whoami-ingress + name: whoami-ingressroute spec: - rules: - - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: whoami-traefik - port: - name: web + entryPoints: + - web + routes: + - match: Host(`whoami.mziesel.nl`) + kind: Rule + services: + - name: whoami + port: 80 + +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: whoami-ingressroutetls +spec: + entryPoints: + - websecure + routes: + - match: Host(`whoami.mziesel.nl`) + kind: Rule + services: + - name: whoami + port: 80