Closed disaster37 closed 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.
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 ...