Merge "Kibana: use endpoints section and lookups to set port"

This commit is contained in:
Zuul 2018-03-09 01:12:16 +00:00 committed by Gerrit Code Review
commit 0fc0e760cf
3 changed files with 5 additions and 3 deletions

@ -58,7 +58,7 @@ spec:
- start
ports:
- name: http
containerPort: 80
containerPort: {{ tuple "kibana" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
env:
- name: KIBANA_PORT
value: {{ tuple "kibana" "internal" "kibana" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
@ -97,7 +97,7 @@ spec:
- start
ports:
- name: kibana
containerPort: {{ .Values.network.kibana.port }}
containerPort: {{ tuple "kibana" "internal" "kibana" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
env:
- name: ELASTICSEARCH_URL
value: {{ tuple "elasticsearch" "default" "client" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}

@ -23,7 +23,7 @@ metadata:
spec:
ports:
- name: http
port: 80
port: {{ tuple "kibana" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
{{ if .Values.network.kibana.node_port.enabled }}
nodePort: {{ .Values.network.kibana.node_port.port }}
{{ end }}

@ -169,6 +169,8 @@ endpoints:
port:
kibana:
default: 5601
http:
default: 80
network:
kibana: