Add IngressRoutes

This commit is contained in:
rod
2026-05-17 16:14:33 +02:00
parent ee09fcc69d
commit 32db95f83f
4 changed files with 56 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: strip-dev-prefix
namespace: dev
spec:
stripPrefix:
prefixes:
- /dev
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: hello-svc
namespace: dev
spec:
entryPoints:
- web
routes:
- match: PathPrefix(`/dev`)
kind: Rule
middlewares:
- name: strip-dev-prefix
namespace: dev
services:
- name: hello-svc
port: 80
+1
View File
@@ -6,6 +6,7 @@ namespace: dev
resources: resources:
- ../../base - ../../base
- namespace.yaml - namespace.yaml
- ingressroute.yaml
patches: patches:
- path: deployment-patch.yaml - path: deployment-patch.yaml
+27
View File
@@ -0,0 +1,27 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: strip-prod-prefix
namespace: prod
spec:
stripPrefix:
prefixes:
- /prod
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: hello-svc
namespace: prod
spec:
entryPoints:
- web
routes:
- match: PathPrefix(`/prod`)
kind: Rule
middlewares:
- name: strip-prod-prefix
namespace: prod
services:
- name: hello-svc
port: 80
+1
View File
@@ -6,6 +6,7 @@ namespace: prod
resources: resources:
- ../../base - ../../base
- namespace.yaml - namespace.yaml
- ingressroute.yaml
patches: patches:
- path: deployment-patch.yaml - path: deployment-patch.yaml