Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy OpenShift route for external communications using the Helm Chart #3777

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions charts/kafka-ui/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.route.enabled -}}
{{- $fullName := include "kafka-ui.fullname" . -}}
{{- $svcPort := (eq (int .Values.service.port) 80) | ternary "http" .Values.service.port -}}
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ $fullName }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
{{- with .Values.route.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
to:
kind: Service
name: {{ $fullName }}
weight: 100
port:
targetPort: {{ $svcPort | quote }}
{{- if .Values.route.tls.enabled }}
tls:
termination: {{ .Values.route.tls.termination }}
insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }}
{{- end }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/kafka-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ ingress:
# Http paths to add to the Ingress after the default path
succeedingPaths: []

# OpenShift Route configuration
route:
# Enable OpenShift Route resource
enabled: false

# Annotations for OpenShift Route
annotations: {}

# configs for OpenShift Route TLS
tls:
# Enable TLS termination for the OpenShift Route
enabled: false
# TLS termination
termination: edge
# Insecure Edge Termination Policy
insecureEdgeTerminationPolicy: Redirect

resources:
{}
# limits:
Expand Down