[stable/elasticsearch] Update to 6.8.6 + Fix plugin install initcontainer which would fail if plugin already exists. (#20630)

* [stable/elasticsearch] Fix plugin install initcontainer which would fail if plugin already exists. This happens when Node reboots and keeps emptyDir, or if elasticsearch image already contains plugin.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>

* [stable/elasticsearch] Update to 6.8.6.

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
This commit is contained in:
Cédric de Saint Martin
2020-02-13 14:26:18 -08:00
committed by GitHub
parent 9c45f0f6d5
commit f62373159d
3 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.32.2
appVersion: 6.8.2
version: 1.32.3
appVersion: 6.8.6
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg
+7 -1
View File
@@ -97,7 +97,13 @@ plugin installer template
- "-c"
- |
{{- range .Values.cluster.plugins }}
/usr/share/elasticsearch/bin/elasticsearch-plugin install -b {{ . }}
PLUGIN_NAME="{{ . }}"
echo "Installing $PLUGIN_NAME..."
if /usr/share/elasticsearch/bin/elasticsearch-plugin list | grep "$PLUGIN_NAME" > /dev/null; then
echo "Plugin $PLUGIN_NAME already exists, skipping."
else
/usr/share/elasticsearch/bin/elasticsearch-plugin install -b $PLUGIN_NAME
fi
{{- end }}
volumeMounts:
- mountPath: /usr/share/elasticsearch/plugins/
+2 -2
View File
@@ -1,7 +1,7 @@
# Default values for elasticsearch.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
appVersion: "6.8.2"
appVersion: "6.8.6"
## Define serviceAccount names for components. Defaults to component's fully qualified name.
##
@@ -42,7 +42,7 @@ securityContext:
image:
repository: "docker.elastic.co/elasticsearch/elasticsearch-oss"
tag: "6.8.2"
tag: "6.8.6"
pullPolicy: "IfNotPresent"
# If specified, use these secrets to access the image
# pullSecrets: