webcenter-fr / elasticsearch-operator

Elasticsearch operator that work with all license type
MIT License
3 stars 1 forks source link

[issue][elasticsearch] - Remove cluster.initial_master_nodes after bootstraping cluster #103

Closed disaster37 closed 1 year ago

disaster37 commented 1 year ago

The parameter cluster.initial_master_nodes must be remove from setting after the cluster is bootstraping successfully.

Moreover, if we maintain this parameter over time, It can force rolling restart all nodes each time we add or remove master nodes because of the setting change ...

The controller need to control when rolling restart statefullset base on configmap change ...

disaster37 commented 1 year ago

New design:

Use a configmap to store the properties needed to bootstrapping cluster:

Mount configmap on statefullset as envFrom to avoid rolling upgrade when new master added or when clean cluster.initial_master_nodes after successfully boostrapping cluster.