chore: compact ingress rules with regex
This commit is contained in:
@@ -7,7 +7,7 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`forust.xyz`) && PathPrefix(`/convert`)
|
||||
- match: HostRegexp(`^forust\.xyz$`) && PathPrefix(`/convert`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: convertx-service
|
||||
@@ -24,23 +24,9 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`workstation.internal`) && PathPrefix(`/convert`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: convertx-service
|
||||
port: 3000
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: convertx-dev
|
||||
namespace: convertx
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`gigaforust.internal`) && PathPrefix(`/convert`)
|
||||
- match: HostRegexp(`^(workstation|gigaforust)\.internal$`) && PathPrefix(`/convert`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: convertx-service
|
||||
port: 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user