change whoami IngressRoute

This commit is contained in:
Mans Ziesel 2024-10-13 17:09:56 +02:00
parent 45e9c23c25
commit c724848845

View File

@ -1,41 +1,11 @@
# 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 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: whoami-ingressroute name: whoami-ingressroute
spec: spec:
routes: routes:
- match: Host(`whoami.mziesel.nl`) || Path(`/`) - match: Path(`/`)
kind: Rule kind: Rule
services: services:
- name: whoami - name: whoami
port: web port: web
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: whoami-ingressroutetls
spec:
entryPoints:
- websecure
routes:
- match: Host(`whoami.mziesel.nl`)
kind: Rule
services:
- name: whoami-traefik
port: web