apiVersion: route.openshift.io/v1 kind: Route metadata: name: {{ template "landing.routename" . }} namespace: {{ .Release.Namespace }} labels: app: {{ template "landing.name" . }} spec: host: {{ .Values.ingress.host }} to: kind: Service name: {{ template "landing.name" . }} port: targetPort: 8080 tls: termination: edge insecureEdgeTerminationPolicy: Redirect {{- if and .Values.tls.enabled .Values.tls.secretName }} # Reference the TLS secret created by cert-manager # OpenShift will automatically use the contents of this secret for TLS {{- end }}