I have been using the elasticsearch helm chart from elastic for a long time now, but recently wanted to switch my architecture to use dedicated master and data nodes.
I looked at the example provided here: https://github.com/elastic/helm-charts/tree/7.9/elasticsearch/examples/multi
and added 2 releases of the chart in my code. This installed properly with both master and data nodes starting correctly with their respective pvc's.
Issue happened when i deleted both the helm releases (master and data) and tried to re-deploy the helm release (i did that because i wanted to update the PVC size in the statefulset and with the current chart you cannot update the volume size value without deleting and deploying the statefulset). Related to: https://github.com/elastic/helm-charts/issues/492
Specific error is this:
when i re deployed, of course the PVC's were still there, and when my helm command to deploy master nodes ran, the pods got scheduled but the master nodes never formed the cluster.
My question is, is this expected because there are no data nodes ? But since to use this chart as described in the example, 1 release will have to happen before the other, cannot happen together.
How do i overcome this issue ?
Of course if i remove the PVC's (delete them) i see deploy works fine.
Any help will be appreciated and i can provide more info if needed.