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

Optionally configure nodes to use NTP instead of systemd-timesyncd #178

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

nschad
Copy link

@nschad nschad commented Jan 20, 2025

How to categorize this PR?

/area os
/kind enhancement
/os ubuntu

What this PR does / why we need it:

We have added a new ExtensionConfig to this extension, enabling operators to configure an optional switch for nodes to use a more advanced NTP daemon instead of the default systemd-timesyncd. While systemd-timesyncd supports only SNTP, the advanced NTP daemon offers enhanced features, such as cross-checking multiple time servers, which significantly improves time synchronization accuracy in scenarios where systemd-timesyncd might fall short.

The necessary configuration files for this feature are deployed during the "reconcile" phase rather than the "provision" phase. This decision helps minimize the data in the "provision" phase, avoiding potential issues with user data size limits imposed by various providers.

The controller deploys a small script, backed by systemd unit of type oneshot that installs (if necessary) the requested ntp client.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

In-case the systemd-unit fails then that error is AFAIK not reported back to gardener. In our tests it looked like the gardener-node-agent does not check the service for status.

Release note:

Allows the operator to deploy nodes with the timesyncing service `ntp` to be enabled and configured by default

nschad added 15 commits January 14, 2025 15:55
Signed-off-by: Niclas Schad <[email protected]>
Signed-off-by: Niclas Schad <[email protected]>
Signed-off-by: Niclas Schad <[email protected]>
Signed-off-by: Niclas Schad <[email protected]>
@nschad nschad requested review from a team as code owners January 20, 2025 15:23
@gardener-robot gardener-robot added area/os Operation system related kind/enhancement Enhancement, improvement, extension os/ubuntu Related to Ubuntu OS labels Jan 20, 2025
@gardener-robot
Copy link

@nschad Thank you for your contribution.

@gardener-robot gardener-robot added needs/review Needs review size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) needs/second-opinion Needs second review by someone else labels Jan 20, 2025
@gardener-robot-ci-3
Copy link
Contributor

Thank you @nschad for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/os Operation system related kind/enhancement Enhancement, improvement, extension needs/review Needs review needs/second-opinion Needs second review by someone else os/ubuntu Related to Ubuntu OS size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants