One file to rule them all
This commit is contained in:
17
cmd/opencloud-chart/templates/oc-front/ingress.yaml
Normal file
17
cmd/opencloud-chart/templates/oc-front/ingress.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
{{- if index .Values.ocFront.enabled }}
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: oc-front-ingress
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`{{ .Values.host }}`) && PathPrefix(`/`)
|
||||
priority: 5
|
||||
services:
|
||||
- kind: Service
|
||||
name: oc-front-svc
|
||||
port: 8080
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user