95e3c21df4
This change adds a new Deployment to the Elasticsearch chart to add a set of "gateway" nodes to the Elasticsearch cluster. These nodes will facilitate Elasticsearch remote cluster, for features such as cross cluster search. Co-Authored-By: David Smith <ds3330@att.com> Change-Id: Ic4ac988a922a12addce3c65e0ef4099d46bbc784
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
{{/*
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.network.remote_clustering.enabled }}
|
|
{{- $envAll := . }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ tuple "elasticsearch" "gateway" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
|
spec:
|
|
ports:
|
|
- name: transport
|
|
port: {{ tuple "elasticsearch" "internal" "discovery" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
nodePort: {{ .Values.network.remote_clustering.node_port.port }}
|
|
selector:
|
|
{{ tuple $envAll "elasticsearch" "gateway" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
type: NodePort
|
|
{{- end }}
|