mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/elasticsearch] Ingress for Elasticsearch client nodes (#9742)
* ingress for elasticsearch client Signed-off-by: Kamil Szczygiel <kamil@szczygiel.io> * bump chart version Signed-off-by: Kamil Szczygiel <kamil@szczygiel.io> * bump version Signed-off-by: Kamil Szczygiel <kamil@szczygiel.io> * bump minor Signed-off-by: Kamil Szczygiel <kamil@szczygiel.io> * chart version to 1.15.0 Signed-off-by: Kamil Szczygiel <kamil@szczygiel.io>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5b685458c9
commit
ce5ce2b4a3
@@ -1,6 +1,6 @@
|
||||
name: elasticsearch
|
||||
home: https://www.elastic.co/products/elasticsearch
|
||||
version: 1.14.3
|
||||
version: 1.15.0
|
||||
appVersion: 6.5.1
|
||||
description: Flexible and powerful open source, distributed real-time search and analytics
|
||||
engine.
|
||||
|
||||
@@ -88,6 +88,10 @@ The following table lists the configurable parameters of the elasticsearch chart
|
||||
| `client.loadBalancerSourceRanges` | Client loadBalancerSourceRanges | `{}` |
|
||||
| `client.antiAffinity` | Client anti-affinity policy | `soft` |
|
||||
| `client.nodeAffinity` | Client node affinity policy | `{}` |
|
||||
| `client.ingress.enabled` | Enable Client Ingress | `false` |
|
||||
| `client.ingress.annotations` | Client Ingress annotations | `{}` |
|
||||
| `client.ingress.hosts` | Client Ingress Hostnames | `[]` |
|
||||
| `client.ingress.tls` | Client Ingress TLS configuration | `[]` |
|
||||
| `master.exposeHttp` | Expose http port 9200 on master Pods for monitoring, etc | `false` |
|
||||
| `master.name` | Master component name | `master` |
|
||||
| `master.replicas` | Master node replicas (deployment) | `2` |
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{{- if .Values.client.ingress.enabled -}}
|
||||
{{- $fullName := include "elasticsearch.client.fullname" . -}}
|
||||
{{- $ingressPath := .Values.client.ingress.path -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
app: {{ template "elasticsearch.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
component: "{{ .Values.client.name }}"
|
||||
heritage: {{ .Release.Service }}
|
||||
release: {{ .Release.Name }}
|
||||
{{- with .Values.client.ingress.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.client.ingress.tls }}
|
||||
tls:
|
||||
{{- range .Values.client.ingress.tls }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.client.ingress.hosts }}
|
||||
- host: {{ . | quote }}
|
||||
http:
|
||||
paths:
|
||||
- path: {{ $ingressPath }}
|
||||
backend:
|
||||
serviceName: {{ $fullName }}
|
||||
servicePort: http
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -90,6 +90,18 @@ client:
|
||||
enabled: false
|
||||
minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: "true"
|
||||
path: /
|
||||
hosts:
|
||||
- chart-example.local
|
||||
tls: []
|
||||
# - secretName: chart-example-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
|
||||
master:
|
||||
name: master
|
||||
|
||||
Reference in New Issue
Block a user