Change defauit volume size for elastic

Elasticsearch comes with a 1GB storage by default

> NAME                                            STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
> elasticsearch-data-elasticsearch-es-default-0   Bound    pvc-4d565cd7-3894-11ea-a77b-12b06dd324bb   1Gi        RWO            gp2            12

Is there a way to change the size without configuring my own pvc, volume and volume mount?

thanks

You can use a volume claim template: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html

You also have an example here: https://github.com/elastic/cloud-on-k8s/blob/master/config/samples/elasticsearch/elasticsearch.yaml#L45

Note that the name must be elasticsearch-data

@michael.morello
Perfect! Thanks for the help