mirror of https://github.com/easzlab/kubeasz.git
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
# Use public servers from the pool.ntp.org project.
|
|||
|
{% for HOST in ntp_servers %}
|
|||
|
server {{ HOST }} iburst
|
|||
|
{% endfor %}
|
|||
|
pool pool.ntp.org iburst
|
|||
|
pool 2.debian.pool.ntp.org iburst
|
|||
|
|
|||
|
# Record the rate at which the system clock gains/losses time.
|
|||
|
driftfile /var/lib/chrony/drift
|
|||
|
|
|||
|
# Allow the system clock to be stepped in the first three updates
|
|||
|
# if its offset is larger than 1 second.
|
|||
|
makestep 1.0 3
|
|||
|
|
|||
|
# This directive enables kernel synchronisation (every 11 minutes) of the
|
|||
|
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
|
|||
|
rtcsync
|
|||
|
|
|||
|
# Specify directory for dumping measurements.
|
|||
|
dumpdir /var/lib/chrony
|
|||
|
|
|||
|
# This directive lets 'chronyd' to serve time even if unsynchronised to any NTP server.
|
|||
|
local stratum 10
|
|||
|
|
|||
|
# This directive designates subnets (or nodes) from which NTP clients are allowed
|
|||
|
# to access to 'chronyd'.
|
|||
|
allow {{ local_network }}
|
|||
|
|
|||
|
# Stop bad estimates upsetting machine clock.
|
|||
|
maxupdateskew 100.0
|
|||
|
|
|||
|
# Ignor source level
|
|||
|
stratumweight 0
|
|||
|
|
|||
|
# Comment this line out to turn off logging.
|
|||
|
#log tracking measurements statistics
|
|||
|
logdir /var/log/chrony
|
|||
|
log statistics measurements tracking
|
|||
|
noclientlog
|