Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write basic etcd-operator logic #13

Closed
kvaps opened this issue Mar 12, 2024 · 2 comments · Fixed by #21
Closed

Write basic etcd-operator logic #13

kvaps opened this issue Mar 12, 2024 · 2 comments · Fixed by #21
Milestone

Comments

@kvaps
Copy link
Member

kvaps commented Mar 12, 2024

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

@kvaps kvaps added this to the v0.0.1 milestone Mar 13, 2024
@apten-fors
Copy link

apten-fors commented Mar 13, 2024

Don't forget about persistence:

spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: Parallel

@kvaps
Copy link
Member Author

kvaps commented Mar 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants