Node clock is not synced and shows "node clock drift" issue on GUI

Problem

The node clock drift issue is caused due to management plane clock and node clock is not in sync with each other. Usually, this is observed through GUI as shown below:

Environment

  • Platform9 Managed Kubernetes - v5.4.0 and Higher

Scenario for the customer using local time and neither NTPD nor Chronyd. The hardware and system software clock was not synced. The hardware clock is synced with a global clock, but the timedatectl is set to use local RTC.

Procedure

Here we are going to sync the hardware clock to the system clock

  1. Check the warning by running the "timedatectl" command. Use RTC in UTC by running the below command - as the system is configured to read RTC time in local time.
Bash
Copy

2. Check the timedatectl, hwclock, and system clock, then sync the hardware clock to the system clock by running:

Bash
Copy

3. Verify hwclock, system clock, and timedatectl - it should be in sync now.

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard