The maxpoll
should be configured to
in /etc/ntp.conf
or
/etc/chrony.conf
(or /etc/chrony.d/
) to continuously poll time servers. To configure
maxpoll
in /etc/ntp.conf
or /etc/chrony.conf
(or /etc/chrony.d/
)
add the following after each server
, pool
or peer
entry:
maxpoll
to server
directives. If using chrony, any pool
directives
should be configured too.
Note that if the remediation shipping with this content is being used, the
MachineConfig shipped does not include reference NTP servers to point
to. It is up to the admin to set these which will vary depending on the
cluster's requirements.
The aforementioned remediation does include the directory /etc/chrony.d
which would allow the creation of configuration files to set these servers.
If we'd like to set a configuration like the following:
pool 2.rhel.pool.ntp.org iburst
server 0.rhel.pool.ntp.org minpoll 4 maxpoll 10
server 1.rhel.pool.ntp.org minpoll 4 maxpoll 10
server 2.rhel.pool.ntp.org minpoll 4 maxpoll 10
server 3.rhel.pool.ntp.org minpoll 4 maxpoll 10
This could be done with to the following manifest:
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 75-master-chrony-servers
spec:
config:
ignition:
version: 3.1.0
storage:
files:
- contents:
source: data:,pool%202.rhel.pool.ntp.org%20iburst%0A%0Aserver%200.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%201.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%202.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%203.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010
mode: 0600
path: /etc/chrony.d/10-rhel-pool-and-servers.conf
overwrite: true
Note that this needs to be done for each MachineConfigPool