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

Allow configuring NTP pools and servers for LBMs #411

Merged
merged 8 commits into from
Sep 10, 2024
Merged

Conversation

timebertt
Copy link
Member

@timebertt timebertt commented Sep 10, 2024

This PR adds options (flags and corresponding helm values) to the yawol-controller for configuring NTP pools and servers for LoadBalancerMachines.

The LBM controller passes the configured NTP pools and servers to the chrony config via user-data.
If no NTP pools and servers are configured, it falls back to the current chrony default config, i.e., uses pool.ntp.org.
The chronyd service is restarted after writing the config file.

Note: this PR also bumps the chart version to 0.25.0.
Once this PR and #408 have been merged, we should also create a new release.

Copy link
Collaborator

@maboehm maboehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not used it before, but could you please investigate using the ntp cloud-init config instead? https://cloudinit.readthedocs.io/en/latest/reference/modules.html#ntp Seems like that could be a simpler way to configure NTP if all we want to adjust is pools and servers.

It seems desirable to start chrony as soon as possible even if it doesn't have its
final config yet. If the clock is off by too much, chrony should perform a step instead
of slewing the clock. It's better to do this quickly after boot before time-sensitive
processes might notice.
@timebertt
Copy link
Member Author

@maboehm please take another look, I have addresses your feedback :)

Copy link
Collaborator

@maboehm maboehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for looking into the cloud-init ntp config!

@timebertt timebertt merged commit 4ed6629 into main Sep 10, 2024
2 checks passed
@timebertt timebertt deleted the ntp-servers branch September 10, 2024 14:47
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.

2 participants