[bitnami/elasticsearch] Adapt chart to Elasticserch version 7

This commit is contained in:
tompizmor
2019-04-25 09:59:53 +02:00
parent 9fa4199ce5
commit 782ed02e81
4 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: elasticsearch
version: 4.7.2
appVersion: 6.7.1
version: 5.0.0
appVersion: 7.0.0
description: A highly scalable open-source full-text search and analytics engine
keywords:
- elasticsearch
@@ -1,5 +1,5 @@
apiVersion: extensions/v1beta1
kind: Deployment
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: {{ template "elasticsearch.master.fullname" . }}
labels:
@@ -12,8 +12,9 @@ spec:
selector:
matchLabels:
app: {{ template "elasticsearch.name" . }}
release: "{{ .Release.Name }}"
release: {{ .Release.Name | quote }}
role: "master"
serviceName: "{{ template "elasticsearch.master.fullname" . }}"
replicas: {{ .Values.master.replicas }}
template:
metadata:
@@ -52,7 +53,6 @@ spec:
{{- if .Values.master.nodeAffinity }}
{{ toYaml .Values.master.nodeAffinity | indent 8 }}
{{- end }}
{{- include "elasticsearch.imagePullSecrets" . | indent 6 }}
{{- if .Values.sysctlImage.enabled }}
## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors)
initContainers:
@@ -66,16 +66,20 @@ spec:
containers:
- name: "elasticsearch"
image: {{ template "elasticsearch.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.securityContext.enabled }}
securityContext:
runAsUser: {{ .Values.securityContext.runAsUser }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: {{ .Values.name | quote }}
- name: ELASTICSEARCH_CLUSTER_HOSTS
value: {{ template "elasticsearch.discovery.fullname" . }}
- name: ELASTICSEARCH_CLUSTER_MASTER_HOSTS
{{- $elasticsearchMasterFullname := include "elasticsearch.master.fullname" . }}
{{- $replicas := int .Values.master.replicas }}
value: {{range $i, $e := until $replicas }}{{ $elasticsearchMasterFullname }}-{{ $e }} {{ end }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
value: {{ .Values.plugins | quote }}
@@ -110,7 +114,7 @@ spec:
httpGet:
path: /_cluster/health?local=true
port: 9200
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.master.resources | indent 10 }}
volumeMounts:
@@ -128,4 +132,4 @@ spec:
name: {{ template "elasticsearch.fullname" . }}
{{- end }}
- name: "data"
emptyDir: {}
emptyDir: {}
+1 -1
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/elasticsearch
tag: 6.7.1
tag: 7.0.0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
+1 -1
View File
@@ -13,7 +13,7 @@
image:
registry: docker.io
repository: bitnami/elasticsearch
tag: 6.7.1
tag: 7.0.0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images