New cluster vs. existing on Kubernetes

Hey, we ran into the same issue as this - Recreate a cluster with the same cluster_uuid in k8s stetefullset configuration - and will now add a persistent volume to the master nodes but I was wondering what best practices were when setting cluster.initial_master_nodes. At the moment we are just setting it unconditionally for all master nodes but the documentation says that:

After the cluster has formed, this setting is no longer required. It should not be set for master-ineligible nodes, master-eligible nodes joining an existing cluster, or cluster restarts.

https://www.elastic.co/guide/en/elasticsearch/reference/7.4/modules-discovery-bootstrap-cluster.html

What is the best way to determine whether a cluster has already been bootstrapped and have this setting added/removed appropriately?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.