diff --git a/stable/elasticsearch/Chart.yaml b/stable/elasticsearch/Chart.yaml index 444866055a9a..007c11c4973a 100755 --- a/stable/elasticsearch/Chart.yaml +++ b/stable/elasticsearch/Chart.yaml @@ -1,6 +1,6 @@ name: elasticsearch home: https://www.elastic.co/products/elasticsearch -version: 1.16.0 +version: 1.17.0 appVersion: 6.5.4 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 0a76906e3ce9..94a695c4caf5 100644 --- a/stable/elasticsearch/README.md +++ b/stable/elasticsearch/README.md @@ -90,11 +90,13 @@ The following table lists the configurable parameters of the elasticsearch chart | `client.antiAffinity` | Client anti-affinity policy | `soft` | | `client.nodeAffinity` | Client node affinity policy | `{}` | | `client.initResources` | Client initContainer resources requests & limits | `{}` | +| `client.additionalJavaOpts` | Parameters to be added to `ES_JAVA_OPTS` environment variable for client | `""` | | `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.initResources` | Master initContainer resources requests & limits | `{}` | +| `master.additionalJavaOpts` | Parameters to be added to `ES_JAVA_OPTS` environment variable for master | `""` | | `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` | @@ -114,6 +116,7 @@ The following table lists the configurable parameters of the elasticsearch chart | `master.nodeAffinity` | Master node affinity policy | `{}` | | `master.updateStrategy` | Master node update strategy policy | `{type: "onDelete"}` | | `data.initResources` | Data initContainer resources requests & limits | `{}` | +| `data.additionalJavaOpts` | Parameters to be added to `ES_JAVA_OPTS` environment variable for data | `""` | | `data.exposeHttp` | Expose http port 9200 on data Pods for monitoring, etc | `false` | | `data.replicas` | Data node replicas (statefulset) | `2` | | `data.resources` | Data node resources requests & limits | `{} - cpu limit must be an integer` | diff --git a/stable/elasticsearch/templates/client-deployment.yaml b/stable/elasticsearch/templates/client-deployment.yaml index e955da5837d3..5f295694ee01 100644 --- a/stable/elasticsearch/templates/client-deployment.yaml +++ b/stable/elasticsearch/templates/client-deployment.yaml @@ -95,7 +95,7 @@ spec: resourceFieldRef: resource: limits.cpu - name: ES_JAVA_OPTS - value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.client.heapSize }} -Xmx{{ .Values.client.heapSize }} {{ .Values.cluster.additionalJavaOpts }}" + value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.client.heapSize }} -Xmx{{ .Values.client.heapSize }} {{ .Values.cluster.additionalJavaOpts }} {{ .Values.client.additionalJavaOpts }}" {{- range $key, $value := .Values.cluster.env }} - name: {{ $key }} value: {{ $value | quote }} diff --git a/stable/elasticsearch/templates/data-statefulset.yaml b/stable/elasticsearch/templates/data-statefulset.yaml index 2752ace569c2..902dccde9c85 100644 --- a/stable/elasticsearch/templates/data-statefulset.yaml +++ b/stable/elasticsearch/templates/data-statefulset.yaml @@ -115,7 +115,7 @@ spec: resourceFieldRef: resource: limits.cpu - name: ES_JAVA_OPTS - value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.data.heapSize }} -Xmx{{ .Values.data.heapSize }} {{ .Values.cluster.additionalJavaOpts }}" + value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.data.heapSize }} -Xmx{{ .Values.data.heapSize }} {{ .Values.cluster.additionalJavaOpts }} {{ .Values.data.additionalJavaOpts }}" {{- range $key, $value := .Values.cluster.env }} - name: {{ $key }} value: {{ $value | quote }} diff --git a/stable/elasticsearch/templates/master-statefulset.yaml b/stable/elasticsearch/templates/master-statefulset.yaml index 5bf95b00cf10..31179dec9e93 100644 --- a/stable/elasticsearch/templates/master-statefulset.yaml +++ b/stable/elasticsearch/templates/master-statefulset.yaml @@ -119,7 +119,7 @@ spec: resourceFieldRef: resource: limits.cpu - name: ES_JAVA_OPTS - value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.master.heapSize }} -Xmx{{ .Values.master.heapSize }} {{ .Values.cluster.additionalJavaOpts }}" + value: "-Djava.net.preferIPv4Stack=true -Xms{{ .Values.master.heapSize }} -Xmx{{ .Values.master.heapSize }} {{ .Values.cluster.additionalJavaOpts }} {{ .Values.master.additionalJavaOpts }}" {{- range $key, $value := .Values.cluster.env }} - name: {{ $key }} value: {{ $value | quote }} diff --git a/stable/elasticsearch/values.yaml b/stable/elasticsearch/values.yaml index 8cbaf38e3595..623901c70e68 100644 --- a/stable/elasticsearch/values.yaml +++ b/stable/elasticsearch/values.yaml @@ -73,6 +73,7 @@ client: # serviceAnnotations: # example: client-svc-foo heapSize: "512m" + # additionalJavaOpts: "-XX:MaxRAM=512m" antiAffinity: "soft" nodeAffinity: {} nodeSelector: {} @@ -117,6 +118,7 @@ master: exposeHttp: false replicas: 3 heapSize: "512m" + # additionalJavaOpts: "-XX:MaxRAM=512m" persistence: enabled: true accessMode: ReadWriteOnce @@ -157,6 +159,7 @@ data: exposeHttp: false replicas: 2 heapSize: "1536m" + # additionalJavaOpts: "-XX:MaxRAM=1536m" persistence: enabled: true accessMode: ReadWriteOnce