Skip to content

Commit

Permalink
route template added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörg Erdmenger committed Oct 10, 2024
1 parent d68e565 commit 5045cb5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ description: |-
and maintained by your friends at Equinix Metal
type: application
version: 0.1.35-os
version: 0.1.35-os-2
appVersion: 2.7.2
21 changes: 21 additions & 0 deletions templates/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if and .Values.openshift .Values.openshift.route.contextPath }}
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ include "krakend.fullname" . }}-route
spec:
{{- if .Values.openshift.route.host }}
host: {{ .Values.openshift.route.host }}
{{- end }}
path: {{ .Values.openshift.route.contextPath }}
to:
kind: Service
name: {{ include "krakend.fullname" . }}
weight: 100
port:
targetPort: http
tls:
termination: reencrypt
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
{{ end }}

0 comments on commit 5045cb5

Please sign in to comment.