Avoid deployment and configmap is ES host/port are not specified

This commit is contained in:
Carlos Rodriguez Hernandez
2019-12-10 13:36:47 +00:00
parent 7981a33fef
commit b922bdb520
3 changed files with 17 additions and 3 deletions
+13 -1
View File
@@ -1,5 +1,16 @@
** Please be patient while the chart is being deployed **
{{- if or (not .Values.elasticsearch.hosts) (not .Values.elasticsearch.port) -}}
######################################################################################################
### ERROR: You did not provide the Elasticsearch external host or port in your 'helm install' call ###
######################################################################################################
Complete your Kibana deployment by running:
helm upgrade {{ .Release.Name }} bitnami/kibana \
--set elasticsearch.hosts[0]=YOUR_ES_HOST,elasticsearch.port=YOUR_ES_PORT
Replacing "YOUR_ES_HOST" and "YOUR_ES_PORT" placeholders by the proper values of your Elasticsearch deployment.
{{- else -}}
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
@@ -41,3 +52,4 @@ WARNING: For Prometheus metrics to work, make sure that the kibana-prometheus-ex
{{- end }}
{{ include "kibana.validateValues" . }}
{{- end }}
+2 -2
View File
@@ -1,4 +1,4 @@
{{- if not .Values.configurationCM }}
{{- if and (not .Values.configurationCM) (and .Values.elasticsearch.hosts .Values.elasticsearch.port) }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -13,4 +13,4 @@ data:
{{- if .Values.extraConfiguration }}
{{- tpl (toYaml .Values.extraConfiguration) $ | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
+2
View File
@@ -1,3 +1,4 @@
{{- if and .Values.elasticsearch.hosts .Values.elasticsearch.port -}}
apiVersion: {{ template "kibana.deployment.apiVersion" . }}
kind: Deployment
metadata:
@@ -184,3 +185,4 @@ spec:
tolerations:
{{- tpl (toYaml .Values.tolerations) $ | nindent 6 }}
{{- end }}
{{- end }}