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

Start konnectivity BEFORE api-server #3616

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

jnummelin
Copy link
Member

Description

In kube 1.28, api-server is more stringent in checking the konnectivity socket reachability. So upgrading from 1.28 make the startup quite slow. Eventually api-server does get ready and thus allows k0s to start konnectivity.

To mitigate this, this PR changes the order to start konnectivity first.

This requires to break down the components a bit, into three different components:

  • Konnectivity: konnectivity-server logic
  • KonnectivityAgent: Only responsible for managing the konnectivity-agent deployment into workers
  • K0sControllersLeaseCounter: Enhanced now to support pub-sub like functionality to subscribe to controll count events. `

Fixes #3586

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

  • Manual test
  • Auto test added

Checklist:

  • My code follows the style guidelines of this project
  • My commit messages are signed-off
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@jnummelin jnummelin force-pushed the fix/konnectivity-startup-order branch 3 times, most recently from 82024bd to ae59912 Compare October 25, 2023 09:17
@jnummelin jnummelin marked this pull request as ready for review October 26, 2023 12:26
@jnummelin jnummelin requested a review from a team as a code owner October 26, 2023 12:26
@jnummelin jnummelin force-pushed the fix/konnectivity-startup-order branch 3 times, most recently from f6b8d4c to 7366fec Compare October 27, 2023 11:01
In kube 1.28, api-server is more stringent in checking the konnectivity socket reachability. So upgrading from 1.28 make the startup quite slow. Eventually api-server does get ready and thus allows k0s to start konnectivity.

To mitigate this, this PR changes the order to start konnectivity first.

This requires to break down the components a bit, into three different components:
* `Konnectivity`: konnectivity-server logic
* `KonnectivityAgent`: Only responsible for managing the konnectivity-agent deployment into workers
* `K0sControllersLeaseCounter`: Enhanced now to support pub-sub like functionality to subscribe to controll count events.
`

Signed-off-by: Jussi Nummelin <[email protected]>
@jnummelin jnummelin force-pushed the fix/konnectivity-startup-order branch from 7366fec to f1ddeed Compare October 27, 2023 12:26
@jnummelin jnummelin merged commit c430db6 into k0sproject:main Oct 27, 2023
71 checks passed
@jnummelin jnummelin deleted the fix/konnectivity-startup-order branch October 27, 2023 12:58
@jnummelin jnummelin added the backport/release-1.28 PR that needs to be backported/cherrypicked to release-1.28 branch label Oct 27, 2023
@k0s-bot
Copy link

k0s-bot commented Oct 27, 2023

Successfully created backport PR for release-1.28:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/release-1.28 PR that needs to be backported/cherrypicked to release-1.28 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to update to v1.28.2+k0s.0 from v1.27.5+k0s.0
3 participants