Files
traefik-error-pages/examples/ingress.yaml
T
feedc0de 4a68a78f0a
Validate and deploy error pages / Validate manifests (push) Failing after 25s
Validate and deploy error pages / Deploy to Kubernetes (push) Has been skipped
Initial commit
2026-08-08 20:42:38 +02:00

24 lines
669 B
YAML

# Alternative to the global entrypoint configuration: attach the page to one
# Kubernetes Ingress. Prefix the middleware with its Kubernetes namespace.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: default-upstream-errors@kubernetescrd
spec:
ingressClassName: traefik
rules:
- host: example.invalid
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: example
port:
number: 80