Closed
Description
In general
We need to implement checking quorum status of an initialized cluster and update Ready
status condition in accordance. After initializing cluster and making sure pods found each other and formed a cluster, controller must update cluster state configmap to set cluster state existing
(from new
)
Design proposal
When cluster is initialized, we should check if:
- StatefulSet is
Ready
- Connect to any etcd and check if quorum is fine
- if everything is fine, set status condition Ready and update value in cluster state configmap to
existing
. - If some pods in statefulset aren't ready but quorum is fine, set Ready, but mark cluster as degraded in Reason field.
- If pods in sts aren't ready and quorum is lost, mark cluster as not Ready
If configmap already has existing
state, do not change it anymore, as cluster should be already initialized
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done