K3s-cluster/nginx/ingress.yaml

27 lines
502 B
YAML
Raw Normal View History

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: stripprefix
spec:
stripPrefix:
prefixes:
- /nginx
---
2022-05-15 18:30:42 +00:00
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nginx-ingress
annotations:
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
2022-05-15 18:30:42 +00:00
spec:
2022-05-15 18:30:42 +00:00
entryPoints:
- web
routes:
- match: Host(`nginx.diogenes.halia`)
kind: Rule
services:
- name: nginx-svc
port: 80