From 6bfbc8018cd4440637b07c7559d5812e4d9db34d Mon Sep 17 00:00:00 2001 From: Hang Xie Date: Wed, 4 Sep 2019 09:34:59 -0700 Subject: [PATCH] add forceIpv6 flag so to be able to run in IPv6 env (#16283) Signed-off-by: Hang Xie <7977860+hangxie@users.noreply.github.com> --- stable/elasticsearch/Chart.yaml | 2 +- stable/elasticsearch/README.md | 1 + stable/elasticsearch/templates/configmap.yaml | 4 ++++ stable/elasticsearch/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/elasticsearch/Chart.yaml b/stable/elasticsearch/Chart.yaml index 41318bb890..454fb051df 100755 --- a/stable/elasticsearch/Chart.yaml +++ b/stable/elasticsearch/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: elasticsearch home: https://www.elastic.co/products/elasticsearch -version: 1.31.0 +version: 1.31.1 appVersion: 6.8.2 description: Flexible and powerful open source, distributed real-time search and analytics engine. diff --git a/stable/elasticsearch/README.md b/stable/elasticsearch/README.md index 78e6524fbe..7c1b71996f 100644 --- a/stable/elasticsearch/README.md +++ b/stable/elasticsearch/README.md @@ -178,6 +178,7 @@ The following table lists the configurable parameters of the elasticsearch chart | `serviceAccounts.data.name` | Name of the data service account to use or create | `{{ elasticsearch.data.fullname }}` | | `testFramework.image` | `test-framework` image repository. | `dduportal/bats` | | `testFramework.tag` | `test-framework` image tag. | `0.4.0` | +| `forceIpv6` | force to use IPv6 address to listen if set to true | `false` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/stable/elasticsearch/templates/configmap.yaml b/stable/elasticsearch/templates/configmap.yaml index afae95ea75..493346ed2b 100644 --- a/stable/elasticsearch/templates/configmap.yaml +++ b/stable/elasticsearch/templates/configmap.yaml @@ -21,7 +21,11 @@ data: {{- end }} node.name: ${HOSTNAME} +{{- if .Values.forceIpv6 }} + network.host: "::" +{{- else }} network.host: 0.0.0.0 +{{- end }} {{- if hasPrefix "2." .Values.appVersion }} # see https://github.com/kubernetes/kubernetes/issues/3595 diff --git a/stable/elasticsearch/values.yaml b/stable/elasticsearch/values.yaml index e2c74debe0..7cff378bf0 100644 --- a/stable/elasticsearch/values.yaml +++ b/stable/elasticsearch/values.yaml @@ -313,3 +313,5 @@ chownInitContainer: enabled: true ## Additional init containers extraInitContainers: | + +forceIpv6: false