Skip to content

Commit

Permalink
[stable/elasticsearch] Add individual Java flags for elasticsearch wo…
Browse files Browse the repository at this point in the history
…rkload (helm#10512)

This will add individual Java flags for each workload of elasticsearch

Signed-off-by: Johnathan Rodgers <[email protected]>
  • Loading branch information
jar361 authored and k8s-ci-robot committed Jan 9, 2019
1 parent db8391c commit bc5ff1e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions stable/elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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` |
Expand Down
2 changes: 1 addition & 1 deletion stable/elasticsearch/templates/client-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion stable/elasticsearch/templates/data-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion stable/elasticsearch/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ client:
# serviceAnnotations:
# example: client-svc-foo
heapSize: "512m"
# additionalJavaOpts: "-XX:MaxRAM=512m"
antiAffinity: "soft"
nodeAffinity: {}
nodeSelector: {}
Expand Down Expand Up @@ -117,6 +118,7 @@ master:
exposeHttp: false
replicas: 3
heapSize: "512m"
# additionalJavaOpts: "-XX:MaxRAM=512m"
persistence:
enabled: true
accessMode: ReadWriteOnce
Expand Down Expand Up @@ -157,6 +159,7 @@ data:
exposeHttp: false
replicas: 2
heapSize: "1536m"
# additionalJavaOpts: "-XX:MaxRAM=1536m"
persistence:
enabled: true
accessMode: ReadWriteOnce
Expand Down

0 comments on commit bc5ff1e

Please sign in to comment.