Configuring NTP
Configure NTP on all nodes to synchronize the time between nodes in the cluster.
- Install chrony and set the time zone on all nodes. In this document, the Asian time zone is used as an example.
yum install -y chrony timedatectl set-timezone Asia/Shanghai
- Set the management node as the NTP server node.
- Open the /etc/chrony.conf file.
vi /etc/chrony.conf
- Press i to enter the insert mode and add the following content:
allow 192.168.1.0/24 local stratum 10
192.168.1.0/24 is the network segment used by each node in the cluster. Change it based on your actual requirements.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /etc/chrony.conf file.
- Configure the worker node as the NTP client.
- Open the /etc/chrony.conf file.
vi /etc/chrony.conf
- Press i to enter the insert mode and add # before pool pool.ntp.org iburst to comment out the content.
The following figure shows the modification result.

Add the following content:
server MASTER_IP iburst
MASTER_IP indicates the IP address of the management node.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /etc/chrony.conf file.
- Start the NTP service.
- Start the NTP service on all nodes and check the service status.
systemctl enable chronyd.service systemctl start chronyd.service systemctl status chronyd.service
- Restart NTP synchronization on all nodes.
timedatectl set-ntp no timedatectl set-ntp yes
- Start the NTP service on all nodes and check the service status.
- Verify time synchronization.
Wait for several seconds. Run the following command on the worker node to verify time synchronization:
timedatectl status
If the value of System clock synchronized is yes, the operation is successful.

Run the date command on each node to check whether the time is the same.
date
Parent topic: Configuring the Installation Environment