Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

helm - kibana ingress path fix #340

Merged
merged 3 commits into from
Aug 10, 2020
Merged
Changes from all commits
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: 12 additions & 14 deletions helm/opendistro-es/templates/kibana/kibana-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,31 @@

# @formatter:off
{{- if and .Values.kibana.ingress.enabled .Values.kibana.enabled }}
{{- $serviceName:= printf "%s-%s" (include "opendistro-es.fullname" .) "kibana-svc" }}
{{- $serviceName := printf "%s-%s" (include "opendistro-es.fullname" .) "kibana-svc" }}
{{- $servicePort := .Values.kibana.externalPort }}
{{- $ingressPath := .Values.kibana.ingress.path }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "opendistro-es.fullname" . }}-kibana-ing
labels:
{{ include "opendistro-es.labels.standard" . | indent 4 }}
name: {{ template "opendistro-es.fullname" . }}-kibana
{{- include "opendistro-es.labels.standard" . | nindent 4 }}
{{- with .Values.kibana.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.kibana.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
rules:
{{- range .Values.kibana.ingress.hosts }}
{{- $url := splitList "/" . }}
- host: {{ first $url }}
- host: {{ . | quote }}
http:
paths:
- path: /{{ rest $url | join "/" }}
- path: {{ $ingressPath }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}
{{- end }}
{{- if .Values.kibana.ingress.tls }}
tls:
{{ toYaml .Values.kibana.ingress.tls | indent 4 }}
tls: {{ toYaml .Values.kibana.ingress.tls | nindent 4 }}
{{- end }}
{{- end }}

{{- end }}