[stable/elasticsearch] Add individual Java flags for elasticsearch workload (#10512)

This will add individual Java flags for each workload of elasticsearch

Signed-off-by: Johnathan Rodgers <jrodgers@powerhrg.com>
This commit is contained in:
Johnathan Rodgers
2019-01-09 11:58:24 -08:00
committed by Kubernetes Prow Robot
parent db8391ccca
commit bc5ff1e26f
6 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -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.
+3
View File
@@ -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` |
@@ -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 }}
@@ -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 }}
@@ -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 }}
+3
View File
@@ -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