Hey, I'm trying to disable the PVC for a client/ingest nodeset like stated in documentation, however ECK is still creating the 1gb volume.
nodeSet config:
nodesets[client].config.podTemplate.volumes:
- emptyDir: {}
name: elasticsearch-data
resulting statefulset snippet:
spec.containers.volumes:
- name: elasticsearch-data
persistentVolumeClaim:
claimName: claim-name-placeholder
kubectl get pvc:
elasticsearch-data-logs-es-client-0 Bound pvc-xyz 1Gi RWO rbd 25h
It's not clear to me how you have configured the volume as I am not familiar with the notation you have used. Pasting the full YAML manifest here would be helpful to understand what is going wrong.
The following snippet works as expected and does not create a PV:
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: quickstart
spec:
version: 7.6.1
nodeSets:
- name: default
count: 1
podTemplate:
spec:
volumes:
- name: elasticsearch-data
emptyDir: {}
Ah, I found my mistake. I missed a level of indentation thanks to all the other options that make for a functional cluster.
Thank you for taking a look at this.