Skip to content

Implement Ready status condition #24

Closed
@sircthulhu

Description

@sircthulhu

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:

  1. StatefulSet is Ready
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions