mirror of
https://github.com/wekan/wekan.git
synced 2026-01-31 05:35:16 +01:00
Openshift Route def added
This commit is contained in:
parent
9083c341c1
commit
71f7a680b6
2 changed files with 28 additions and 0 deletions
25
helm/wekan/templates/route.yaml
Normal file
25
helm/wekan/templates/route.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{- if .Values.route.enabled -}}
|
||||
{{- $fullName := include "wekan.fullname" . -}}
|
||||
{{- $servicePort := .Values.service.port -}}
|
||||
{{- $ingressPath := .Values.ingress.path -}}
|
||||
apiVersion: route.openshift.io/v1
|
||||
kind: Route
|
||||
metadata:
|
||||
annotations:
|
||||
haproxy.router.openshift.io/timeout: 4m
|
||||
openshift.io/host.generated: "true"
|
||||
labels:
|
||||
app: {{ template "wekan.name" . }}
|
||||
service: {{ template "wekan.name" . }}
|
||||
name: {{ template "wekan.name" . }}
|
||||
spec:
|
||||
port:
|
||||
targetPort: http
|
||||
tls:
|
||||
termination: edge
|
||||
to:
|
||||
kind: Service
|
||||
name: {{ template "wekan.name" . }}
|
||||
weight: 100
|
||||
wildcardPolicy: None
|
||||
{{- end }}
|
||||
|
|
@ -59,6 +59,9 @@ ingress:
|
|||
# hosts:
|
||||
# - wekan-example.local
|
||||
|
||||
route:
|
||||
enabled: true
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue