-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
4992eaf
to
87c858f
Compare
There was a problem hiding this 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.
87c858f
to
dd08186
Compare
@maboehm please take another look, I have addresses your feedback :) |
There was a problem hiding this 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!
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.