diff --git a/elasticsearch/README.md b/elasticsearch/README.md index d501317ba..c74039360 100644 --- a/elasticsearch/README.md +++ b/elasticsearch/README.md @@ -78,7 +78,7 @@ helm install --name elasticsearch elastic/elasticsearch --set imageTag=7.0.0 | `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` | | `initResources` | Allows you to set the [resources](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) for the initContainer 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` | -| `volumeClaimTemplate` | Configuration for the [volumeClaimTemplate for statefulsets](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-storage). You will want to adjust the storage (default `30Gi`) and the `storageClassName` if you are using a different storage class | `accessModes: [ "ReadWriteOnce" ]`
`storageClassName: standard`
`resources.requests.storage: 30Gi` | +| `volumeClaimTemplate` | Configuration for the [volumeClaimTemplate for statefulsets](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-storage). You will want to adjust the storage (default `30Gi`) and the `storageClassName` if you are using a different storage class | `accessModes: [ "ReadWriteOnce" ]`
`resources.requests.storage: 30Gi` | | `persistence.annotations` | Additional persistence annotations for the `volumeClaimTemplate` | `{}` | | `antiAffinityTopologyKey` | The [anti-affinity topology key](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity). By default this will prevent multiple Elasticsearch nodes from running on the same Kubernetes node | `kubernetes.io/hostname` | | `antiAffinity` | Setting this to hard enforces the [anti-affinity rules](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity). If it is set to soft it will be done "best effort". Other values will be ignored. | `hard` | diff --git a/elasticsearch/tests/elasticsearch_test.py b/elasticsearch/tests/elasticsearch_test.py index af554783b..428e398a3 100755 --- a/elasticsearch/tests/elasticsearch_test.py +++ b/elasticsearch/tests/elasticsearch_test.py @@ -128,7 +128,6 @@ def test_defaults(): assert v['metadata']['name'] == uname assert v['spec']['accessModes'] == ['ReadWriteOnce'] assert v['spec']['resources']['requests']['storage'] == '30Gi' - assert v['spec']['storageClassName'] == 'standard' # Init container i = r['statefulset'][uname]['spec']['template']['spec']['initContainers'][0] diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml index 6fce555a2..57ebe9f47 100755 --- a/elasticsearch/values.yaml +++ b/elasticsearch/values.yaml @@ -71,7 +71,6 @@ networkHost: "0.0.0.0" volumeClaimTemplate: accessModes: [ "ReadWriteOnce" ] - storageClassName: "standard" resources: requests: storage: 30Gi