Host Fails to Apply pf9-kube Role With Error "Certificate is Not Yet Valid"

Problem

  • When a node is attempting to join a Platform9 Managed Kubernetes (PMK) cluster, the host enters a failed state.
  • The following error is observed in /var/log/pf9/kube/kube.log.
Copy

Environment

  • Platform9 Managed Kubernetes - All Versions

Cause

The system clocks of the Certificate Authority (CA) and the node failing to join the cluster are out of sync by several seconds with the CA clock being ahead of the node in question.

Resolution

  1. Check the system clocks on at least three nodes.
Copy
  1. Verify all hosts have ntpd (network time protocol daemon) or chrony installed and running, referencing the same NTP server(s).
Copy

If ntpd or chrony is not configured. Sync the node time with hardware clock using:

# timedatectl set-local-rtc 0; hwclock --hctosys

  1. Restart pf9-kube service.
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard