Skip to content

Write basic etcd-operator logic #13

Closed

Description

@kvaps

We agreed on the folowing logic:

  • Create configmap with env ETCD_INITIAL_CLUSTER_STATE=new
  • Create StatefulSet with needed amount of replicas and envFrom: <configmap>, and podManagementPolicy: Parallel
  • Wait unitl all replicas become ready
  • Update configmap to ETCD_INITIAL_CLUSTER_STATE=existing
  • Consider that cluster as bootstrapped

currently locked by #9

Activity

  1. added this to the v0.0.1 milestone on Mar 13, 2024
  2. apten-fors commented on Mar 13, 2024

    @apten-fors

    Don't forget about persistence:

    spec:
      persistentVolumeClaimRetentionPolicy:
        whenDeleted: Retain
        whenScaled: Retain
      podManagementPolicy: Parallel
  3. kvaps commented on Mar 15, 2024

    @kvaps
    MemberAuthor

    podManagementPolicy: Parallel

    I think this policy should not be controlled by user, as it is part of operator logic

      persistentVolumeClaimRetentionPolicy:
        whenDeleted: Retain
        whenScaled: Retain
    

    Do you have any examples how are other operator define this spec?
    Let's discuss it at the next community meeting.

  4. moved this from In progress to Done in etcd-operatoron Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions