From a98d206d1fc893139fef68c017bdceaa5dc7013f Mon Sep 17 00:00:00 2001 From: pawcykca <49437476+pawcykca@users.noreply.github.com> Date: Tue, 23 Apr 2019 16:38:11 +0200 Subject: [PATCH] Expose transport port 9300 on client service (ClusterIP) (#13090) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Expose transport port based on new configuration parameter 'client.exposeTransportPort' Signed-off-by: Paweł Kubica * Update README.md Signed-off-by: Paweł Kubica * Bump Chart version. Signed-off-by: Paweł Kubica * Update stable/elasticsearch/Chart.yaml Bump minor version instead of a patch Co-Authored-By: pawcykca <49437476+pawcykca@users.noreply.github.com> Signed-off-by: Paweł Kubica * Add test value to ci directory Signed-off-by: Paweł Kubica * Bump chart version Signed-off-by: Paweł Kubica --- stable/elasticsearch/Chart.yaml | 2 +- stable/elasticsearch/README.md | 1 + .../ci/expose-transport-port-on-service-values.yaml | 5 +++++ stable/elasticsearch/templates/client-svc.yaml | 5 +++++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 stable/elasticsearch/ci/expose-transport-port-on-service-values.yaml diff --git a/stable/elasticsearch/Chart.yaml b/stable/elasticsearch/Chart.yaml index df19a59934..6716394a0b 100755 --- a/stable/elasticsearch/Chart.yaml +++ b/stable/elasticsearch/Chart.yaml @@ -1,6 +1,6 @@ name: elasticsearch home: https://www.elastic.co/products/elasticsearch -version: 1.25.0 +version: 1.26.0 appVersion: 6.7.0 description: Flexible and powerful open source, distributed real-time search and analytics engine. diff --git a/stable/elasticsearch/README.md b/stable/elasticsearch/README.md index 9fa724018a..cb84b49e74 100644 --- a/stable/elasticsearch/README.md +++ b/stable/elasticsearch/README.md @@ -99,6 +99,7 @@ The following table lists the configurable parameters of the elasticsearch chart | `client.ingress.annotations` | Client Ingress annotations | `{}` | | `client.ingress.hosts` | Client Ingress Hostnames | `[]` | | `client.ingress.tls` | Client Ingress TLS configuration | `[]` | +| `client.exposeTransportPort` | Expose transport port 9300 on client service (ClusterIP) | `false` | | `master.initResources` | Master initContainer resources requests & limits | `{}` | | `master.additionalJavaOpts` | Parameters to be added to `ES_JAVA_OPTS` environment variable for master | `""` | | `master.exposeHttp` | Expose http port 9200 on master Pods for monitoring, etc | `false` | diff --git a/stable/elasticsearch/ci/expose-transport-port-on-service-values.yaml b/stable/elasticsearch/ci/expose-transport-port-on-service-values.yaml new file mode 100644 index 0000000000..2aa678b306 --- /dev/null +++ b/stable/elasticsearch/ci/expose-transport-port-on-service-values.yaml @@ -0,0 +1,5 @@ +--- +# Expose transport port on ClusterIP service + +client: + exposeTransportPort: true diff --git a/stable/elasticsearch/templates/client-svc.yaml b/stable/elasticsearch/templates/client-svc.yaml index e6325876f9..5fbbc18c26 100644 --- a/stable/elasticsearch/templates/client-svc.yaml +++ b/stable/elasticsearch/templates/client-svc.yaml @@ -21,6 +21,11 @@ spec: nodePort: {{ .Values.client.httpNodePort }} {{- end }} targetPort: http +{{- if .Values.client.exposeTransportPort }} + - name: transport + port: 9300 + targetPort: transport +{{- end }} selector: app: {{ template "elasticsearch.name" . }} component: "{{ .Values.client.name }}"