[stable/elasticsearch] Adding static nodeport support to elasticsearch client service (#12828)

* Adding static nodeport support to elasticsearch client service
Signed-off-by: Gilles Dubuc <gilles.dubuc@nuance.com>

* Better nodeport description for elasticsearch
Signed-off-by: Gilles Dubuc <gilles.dubuc@nuance.com>
Co-Authored-By: dubuc <4118897+dubuc@users.noreply.github.com>

* Added http prefix to es client service nodeport
Signed-off-by: Gilles Dubuc <gilles.dubuc@nuance.com>
This commit is contained in:
Gilles Dubuc
2019-04-18 23:29:54 -07:00
committed by Kubernetes Prow Robot
parent 9f5f50e779
commit 2a0849650b
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.24.0
version: 1.25.0
appVersion: 6.7.0
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
+1
View File
@@ -86,6 +86,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `client.tolerations` | Client tolerations | `[]` |
| `client.serviceAnnotations` | Client Service annotations | `{}` |
| `client.serviceType` | Client service type | `ClusterIP` |
| `client.httpNodePort` | Client service HTTP NodePort port number. Has no effect if client.serviceType is not `NodePort`. | `nil` |
| `client.loadBalancerIP` | Client loadBalancerIP | `{}` |
| `client.loadBalancerSourceRanges` | Client loadBalancerSourceRanges | `{}` |
| `client.antiAffinity` | Client anti-affinity policy | `soft` |
@@ -17,6 +17,9 @@ spec:
ports:
- name: http
port: 9200
{{- if and .Values.client.httpNodePort (eq .Values.client.serviceType "NodePort") }}
nodePort: {{ .Values.client.httpNodePort }}
{{- end }}
targetPort: http
selector:
app: {{ template "elasticsearch.name" . }}
+2
View File
@@ -75,6 +75,8 @@ client:
name: client
replicas: 2
serviceType: ClusterIP
## If coupled with serviceType = "NodePort", this will set a specific nodePort to the client HTTP port
# httpNodePort: 30920
loadBalancerIP: {}
loadBalancerSourceRanges: {}
## (dict) If specified, apply these annotations to the client service