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

Failure domains support #803

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

makhov
Copy link
Contributor

@makhov makhov commented Nov 5, 2024

Fix #795

The logic is simple: we check Cluster.status.failureDomains field and, if there are any, select the less used one and add it to the machine spec.

But it takes some time for the infrastructure controller to publish failure domains, so the reconciliation logic is a bit reordered: we wait for the first controller to start before creating other ones. It should not slow down the overall process of provisioning since we wait for the first controller anyway to be able to create join tokens.
Also, because of this new logic, kubeconfig reconciliation should be done before machine creation.

Tested manually with AWS CAPI infrastructure provider.

@makhov makhov force-pushed the failure-domains-support branch 3 times, most recently from 8813b6b to ff0e023 Compare November 6, 2024 12:22
@makhov makhov changed the title Failure domains support. WIP Failure domains support Nov 6, 2024
@makhov makhov force-pushed the failure-domains-support branch from ff0e023 to be74153 Compare November 6, 2024 13:20
Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
@makhov makhov force-pushed the failure-domains-support branch 4 times, most recently from 2d911e5 to 156bea6 Compare November 8, 2024 07:53
Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
@makhov makhov force-pushed the failure-domains-support branch from 156bea6 to 7e146b1 Compare November 8, 2024 09:40
Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
@makhov makhov marked this pull request as ready for review November 8, 2024 11:29
@makhov makhov requested a review from a team as a code owner November 8, 2024 11:29
@makhov makhov merged commit 8289096 into k0sproject:main Nov 14, 2024
36 checks passed
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.

Multi-AZ controlplane with K0sControlPlane
2 participants