From 5045cb5088e621eacdfe5649119ee4dac68ab806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Erdmenger?= Date: Thu, 10 Oct 2024 18:29:52 +0200 Subject: [PATCH] route template added --- Chart.yaml | 2 +- templates/route.yaml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 templates/route.yaml 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