Merge pull request #1143 from tompizmor/adapt_es_chart_to_version_7

[bitnami/elasticsearch] Adapt chart to Elasticserch version 7
This commit is contained in:
Tomas Pizarro
2019-04-26 12:44:00 +02:00
committed by GitHub
7 changed files with 19 additions and 12 deletions

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

View File

@@ -51,7 +51,7 @@ spec:
{{- if .Values.coordinating.nodeAffinity }}
{{ toYaml .Values.coordinating.nodeAffinity | indent 8 }}
{{- end }}
{{- include "elasticsearch.imagePullSecrets" . | indent 6 }}
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.sysctlImage.enabled }}
## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors)
initContainers:

View File

@@ -32,6 +32,7 @@ spec:
release: {{ .Release.Name | quote }}
role: "data"
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}

View File

@@ -23,6 +23,7 @@ spec:
release: {{ .Release.Name | quote }}
role: "ingest"
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}

View File

@@ -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:
@@ -23,6 +24,7 @@ spec:
release: {{ .Release.Name | quote }}
role: "master"
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}
@@ -52,7 +54,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 +67,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 +115,7 @@ spec:
httpGet:
path: /_cluster/health?local=true
port: 9200
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.master.resources | indent 10 }}
volumeMounts:
@@ -128,4 +133,4 @@ spec:
name: {{ template "elasticsearch.fullname" . }}
{{- end }}
- name: "data"
emptyDir: {}
emptyDir: {}

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

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