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

Leader Election support #874

Merged
merged 7 commits into from
Oct 15, 2021
Merged

Conversation

dvaldivia
Copy link
Collaborator

Introduces support for leader election between multiple replicas of the Operator pod.

Now we pass the name of the pod to each operator pod and start with 2 replicas by default, using kubernetes lock leases it then elects a leader, which then patches the pod so that now the operator service only hits that pod (the leader)

We have the requirement to have a single pod serve as the operator API due to the fact that when we are doing online update, the MinIO pods will attempt to download their binary from the operator pod via the operator service, so a single pod should host the downloaded file.

Signed-off-by: Daniel Valdivia 18384552+dvaldivia@users.noreply.github.com

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Alevsk
Alevsk previously approved these changes Oct 14, 2021
main.go Outdated Show resolved Hide resolved
resources/base/deployment.yaml Outdated Show resolved Hide resolved
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
@harshavardhana harshavardhana merged commit a29a810 into minio:master Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants