From c56682285e6d47e5fed9e000b045ec98ee1d3555 Mon Sep 17 00:00:00 2001 From: Julien Mailleret Date: Thu, 23 Jan 2020 10:56:39 +0100 Subject: [PATCH] [elasticsearch] set cpu request = cpu limit --- elasticsearch/README.md | 2 +- elasticsearch/tests/elasticsearch_test.py | 2 +- elasticsearch/values.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticsearch/README.md b/elasticsearch/README.md index 0d0e7886c..d181fcbe6 100644 --- a/elasticsearch/README.md +++ b/elasticsearch/README.md @@ -88,7 +88,7 @@ helm install --name elasticsearch elastic/elasticsearch --set imageTag=7.5.2 | `podAnnotations` | Configurable [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) applied to all Elasticsearch pods | `{}` | | `labels` | Configurable [label](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) applied to all Elasticsearch pods | `{}` | | `esJavaOpts` | [Java options](https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html) for Elasticsearch. This is where you should configure the [jvm heap size](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html) | `-Xmx1g -Xms1g` | -| `resources` | Allows you to set the [resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) for the statefulset | `requests.cpu: 100m`
`requests.memory: 2Gi`
`limits.cpu: 1000m`
`limits.memory: 2Gi` | +| `resources` | Allows you to set the [resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) for the statefulset | `requests.cpu: 1000m`
`requests.memory: 2Gi`
`limits.cpu: 1000m`
`limits.memory: 2Gi` | | `initResources` | Allows you to set the [resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) for the initContainer in the statefulset | {} | | `sidecarResources` | Allows you to set the [resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) for the sidecar containers in the statefulset | {} | | `networkHost` | Value for the [network.host Elasticsearch setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/network.host.html) | `0.0.0.0` | diff --git a/elasticsearch/tests/elasticsearch_test.py b/elasticsearch/tests/elasticsearch_test.py index f13c617c3..7e2f0c112 100755 --- a/elasticsearch/tests/elasticsearch_test.py +++ b/elasticsearch/tests/elasticsearch_test.py @@ -112,7 +112,7 @@ def test_defaults(): # Resources assert c['resources'] == { 'requests': { - 'cpu': '100m', + 'cpu': '1000m', 'memory': '2Gi' }, 'limits': { diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml index 9cd502d7e..46c798a30 100755 --- a/elasticsearch/values.yaml +++ b/elasticsearch/values.yaml @@ -56,7 +56,7 @@ esJavaOpts: "-Xmx1g -Xms1g" resources: requests: - cpu: "100m" + cpu: "1000m" memory: "2Gi" limits: cpu: "1000m"