Lab 2.5 - Install OKD Cluster - Configure NTP Server

1. Install chrony package

dnf install -y chrony

2. Configure chrony

vim /etc/chrony.conf
...
#comment below line
#pool 2.centos.pool.ntp.org iburst

#add below lines
server 0.id.pool.ntp.org
server 1.id.pool.ntp.org
server 2.id.pool.ntp.org
server 3.id.pool.ntp.org

#Modify below line
# Allow NTP client access from local network.
allow 10.6X.6X.0/24
...

3. Enable and restart service

systemctl enable chronyd
systemctl restart chronyd
systemctl status chronyd

4. Verify NTP Server

chronyc sources

5. Set timezone to Asia/Jakarta

timedatectl set-timezone Asia/Jakarta
timedatectl

Daftar Materi