[stable/elasticsearch] Request resource limits for initContainer (#10444)

* [stable/elasticsearch] Request resource limits for initContainer

Signed-off-by: Johnathan Rodgers <jrodgers@powerhrg.com>

* Update README for initResource variables

Signed-off-by: Johnathan Rodgers <jrodgers@powerhrg.com>
This commit is contained in:
Johnathan Rodgers
2019-01-07 10:15:14 -08:00
committed by Kubernetes Prow Robot
parent 8b6ac0843a
commit 37bfb62560
6 changed files with 35 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.15.4
version: 1.15.5
appVersion: 6.5.4
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
+3
View File
@@ -88,10 +88,12 @@ The following table lists the configurable parameters of the elasticsearch chart
| `client.loadBalancerSourceRanges` | Client loadBalancerSourceRanges | `{}` |
| `client.antiAffinity` | Client anti-affinity policy | `soft` |
| `client.nodeAffinity` | Client node affinity policy | `{}` |
| `client.initResources` | Client initContainer resources requests & limits | `{}` |
| `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.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` |
@@ -110,6 +112,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `master.antiAffinity` | Master anti-affinity policy | `soft` |
| `master.nodeAffinity` | Master node affinity policy | `{}` |
| `master.updateStrategy` | Master node update strategy policy | `{type: "onDelete"}` |
| `data.initResources` | Data initContainer resources requests & limits | `{}` |
| `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` |
@@ -69,6 +69,8 @@ spec:
- name: "sysctl"
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: {{ .Values.initImage.pullPolicy | quote }}
resources:
{{ toYaml .Values.client.initResources | indent 12 }}
command: ["sysctl", "-w", "vm.max_map_count=262144"]
securityContext:
privileged: true
@@ -71,12 +71,16 @@ spec:
- name: "sysctl"
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: {{ .Values.initImage.pullPolicy | quote }}
resources:
{{ toYaml .Values.data.initResources | indent 12 }}
command: ["sysctl", "-w", "vm.max_map_count=262144"]
securityContext:
privileged: true
- name: "chown"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
resources:
{{ toYaml .Values.data.initResources | indent 12 }}
command:
- /bin/bash
- -c
@@ -71,12 +71,16 @@ spec:
- name: "sysctl"
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: {{ .Values.initImage.pullPolicy | quote }}
resources:
{{ toYaml .Values.master.initResources | indent 12 }}
command: ["sysctl", "-w", "vm.max_map_count=262144"]
securityContext:
privileged: true
- name: "chown"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
resources:
{{ toYaml .Values.master.initResources | indent 12 }}
command:
- /bin/bash
- -c
+21
View File
@@ -75,6 +75,13 @@ client:
nodeAffinity: {}
nodeSelector: {}
tolerations: []
initResources: {}
# limits:
# cpu: "25m"
# # memory: "128Mi"
# requests:
# cpu: "25m"
# memory: "128Mi"
resources:
limits:
cpu: "1"
@@ -118,6 +125,13 @@ master:
nodeAffinity: {}
nodeSelector: {}
tolerations: []
initResources: {}
# limits:
# cpu: "25m"
# # memory: "128Mi"
# requests:
# cpu: "25m"
# memory: "128Mi"
resources:
limits:
cpu: "1"
@@ -152,6 +166,13 @@ data:
nodeAffinity: {}
nodeSelector: {}
tolerations: []
initResources: {}
# limits:
# cpu: "25m"
# # memory: "128Mi"
# requests:
# cpu: "25m"
# memory: "128Mi"
resources:
limits:
cpu: "1"