switch from Ingress to IngressRoute & configure whoami ingress

This commit is contained in:
Mans Ziesel 2024-10-12 20:05:18 +02:00
parent 17fc8de966
commit e99761bd30

View File

@ -1,15 +1,43 @@
apiVersion: networking.k8s.io/v1 # apiVersion: networking.k8s.io/v1
kind: Ingress # 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: metadata:
name: whoami-ingress name: whoami-ingressroute
spec: spec:
rules: entryPoints:
- http: - web
paths: routes:
- path: / - match: Host(`whoami.mziesel.nl`)
pathType: Prefix kind: Rule
backend: services:
service: - name: whoami
name: whoami-traefik port: 80
port:
name: 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
port: 80