I am on AWS EKS 1.24 using EFS PVC.
initContainers:
- name: fix-volume-mount-permission
image: busybox
command: ["sh", "-c", "chown -R 1000:0 /usr/share/elasticsearch/data"]
volumeMounts:
- name: elasticsearch-master-pvc
mountPath: /usr/share/elasticsearch/data
Error:
chown: /usr/share/elasticsearch/data: Operation not permitted