2022-03-30 17:11:15 +00:00
|
|
|
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
|
2022-03-30 17:11:15 +00:00
|
|
|
metadata:
|
|
|
|
name: nginx-ingress
|
|
|
|
annotations:
|
|
|
|
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
|
2022-05-15 18:30:42 +00:00
|
|
|
|
2022-03-30 17:11:15 +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
|