command
This commit is contained in:
33
utils/assets/templates/oc-peer/ingress.yaml
Normal file
33
utils/assets/templates/oc-peer/ingress.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- if index .Values.ocPeer.enabled }}
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: oc-peer-ingress
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`{{ .Values.host }}`) && PathPrefix(`/peer`)
|
||||
priority: 10
|
||||
services:
|
||||
- kind: Service
|
||||
name: oc-peer-svc
|
||||
port: 8080
|
||||
middlewares:
|
||||
{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
|
||||
- name: forward-auth
|
||||
{{- end }}
|
||||
- name: strip-peer-prefix
|
||||
|
||||
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strip-peer-prefix
|
||||
spec:
|
||||
replacePathRegex:
|
||||
regex: ^/peer(.*)
|
||||
replacement: /oc$1
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user