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

Commit

Permalink
helm - kibana ingress path fix (#340)
Browse files Browse the repository at this point in the history
* kibana ingress path change

* update ingress

* for minimal changes
  • Loading branch information
Hokwang authored and peterzhuamazon committed Aug 11, 2020
1 parent 3cc0b4b commit b8ef564
Showing 1 changed file with 12 additions and 14 deletions.
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 }}

0 comments on commit b8ef564

Please sign in to comment.