I have installed an ES cluster and kibana instance on k8s and verified both are working correctly. I am currently attempting to link a snapshot repository created for our prod cluster to my dev cluster which was provisioned by an external NFS server. I have created a PV and PVC to bind to this NFS share, but when I attempt to create a Read Only snapshot repository in Kibana UI using the mount path for that PVC, I get an error in the ES node logs that the path is not added to path.repo
Here is how I currently have my values.yaml file configured. I initially tried just setting nodeSets.path.repo, but when that didn’t work tried setting elasticsearch.yaml manually as well:
nodeSets:
config:
node.store.allow_mmap: false
path.repo: /mnt/snapshots
count: 3
name: default
podTemplate:
spec:
containers:
- name: elasticsearch
resources:
limits:
memory: 12Gi
requests:
memory: 8Gi
volumeMounts:
- mountPath: /mnt/snapshots
name: snapshot-repo
volumes:
- claimName: es-snapshot-pvc
name: snapshot-repo
esConfig:
elasticsearch.yml: |
path.repo: /mnt/snapshots
Error log in ES pod:
"eck-elasticsearch","error.type":"org.elasticsearch.repositories.RepositoryException","error.message":"[search-prod] location [/mnt/snapshots] doesn't match any of the locations specified by path.repo because this setting is empty"
Clearly I’m not setting path.repo in the right place, but it’s not clear from the documentation I’ve looked at where I should be setting this value instead. Also, to be clear, this is with the eck-elasticsearch helm chart v0.17.0