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