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

[deckhouse-controller] ha #7634

Merged
merged 2 commits into from
Mar 5, 2024
Merged

[deckhouse-controller] ha #7634

merged 2 commits into from
Mar 5, 2024

Conversation

miklezzzz
Copy link
Member

@miklezzzz miklezzzz commented Feb 26, 2024

Description

Provides HA mode based on leases and leader election for deckhouse deployment.
Relates to flant/addon-operator#454

Why do we need it, and what problem does it solve?

It allows to have multiple deckhouse pods, running simultaneously, with a dedicated leader, holding the lease and doing the operator's job. In case of the leader not capable of renewing the lease in a certain amount of time, a new leader is elected among other pods and the new elected leader is promoted to do all the operations.
Closes #4163

What is the expected result?

The expected result is that it's possible to set deckhouse module to run in highavailability mode via its module settings.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: deckhouse-controller
type: feature
summary: Provides Deckhouse HA mode.
impact_level: default

@miklezzzz miklezzzz added this to the v1.59.0 milestone Feb 26, 2024
@miklezzzz miklezzzz self-assigned this Feb 26, 2024
@github-actions github-actions bot added area/core Pull requests that update core modules go Pull requests that update Go code type/dependencies Pull requests that update a dependency file area/api-change Pull requests that api changing labels Feb 26, 2024
@miklezzzz miklezzzz force-pushed the deckhouse-controller-ha branch 3 times, most recently from a734962 to 19f4b7c Compare March 4, 2024 11:21
@github-actions github-actions bot added the area/network Pull requests that update cni and network modules label Mar 4, 2024
Signed-off-by: Mikhail Scherba <[email protected]>
@miklezzzz miklezzzz force-pushed the deckhouse-controller-ha branch from e635d15 to a278bd6 Compare March 4, 2024 15:08
@github-actions github-actions bot removed the area/network Pull requests that update cni and network modules label Mar 4, 2024
@miklezzzz miklezzzz added the e2e/run/yandex-cloud Run e2e tests in Yandex Cloud label Mar 5, 2024
@deckhouse-BOaTswain
Copy link
Collaborator

deckhouse-BOaTswain commented Mar 5, 2024

🟢 e2e: Yandex.Cloud for deckhouse:deckhouse-controller-ha succeeded in 41m24s.

Workflow details

Yandex.Cloud-WithoutNAT-Containerd-1.25 - Connection string: ssh [email protected]

🟢 e2e: Yandex.Cloud, Containerd, Kubernetes 1.25 succeeded in 40m44s.

@github-actions github-actions bot removed the e2e/run/yandex-cloud Run e2e tests in Yandex Cloud label Mar 5, 2024
@miklezzzz
Copy link
Member Author

image

@miklezzzz
Copy link
Member Author

standby pod's logs
image

@miklezzzz
Copy link
Member Author

lease and endpoints
image

@miklezzzz miklezzzz marked this pull request as ready for review March 5, 2024 10:36
Signed-off-by: Mikhail Scherba <[email protected]>
@yalosev yalosev merged commit 7c39b3f into main Mar 5, 2024
30 of 31 checks passed
@yalosev yalosev deleted the deckhouse-controller-ha branch March 5, 2024 12:10
pashcovich pushed a commit that referenced this pull request Mar 6, 2024
elenashliaga pushed a commit that referenced this pull request Mar 7, 2024
@miklezzzz miklezzzz changed the title [deckhoues-controller] ha [deckhouse-controller] ha Mar 21, 2024
Horiodino pushed a commit to Horiodino/deckhouse that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api-change Pull requests that api changing area/core Pull requests that update core modules go Pull requests that update Go code type/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HA mode for deckhouse pod.
3 participants