diff --git a/Chart.yaml b/Chart.yaml index c7d5d21..b24d2d8 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/templates/route.yaml b/templates/route.yaml new file mode 100644 index 0000000..e5720a9 --- /dev/null +++ b/templates/route.yaml @@ -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 }} \ No newline at end of file