chore: compact ingress rules with regex
This commit is contained in:
+3
-17
@@ -7,7 +7,7 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`forust.xyz`)
|
||||
- match: HostRegexp(`^forust\.xyz$`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: glance-strupprefix
|
||||
@@ -26,24 +26,10 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`glance.workstation.internal`)
|
||||
- match: HostRegexp(`^glance\.(workstation|gigaforust)\.internal$`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: glance-service
|
||||
port: 8080
|
||||
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: glance-dev
|
||||
namespace: glance
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`glance.gigaforust.internal`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: glance-service
|
||||
port: 8080
|
||||
|
||||
|
||||
Reference in New Issue
Block a user