Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
21 results

ntp.md

Blame
  • NTP synchronization

    The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems. Time synchronization is important to Kubernetes and Etcd.

    Enable the NTP

    To start the ntpd(or chrony) service and enable it at system boot. There are related specific variables:

    ntp_enabled: true

    The NTP service would be enabled and sync time automatically.

    Customize the NTP configure file

    In the Air-Gap environment, the node cannot access the NTP server by internet. So the node can use the customized ntp server by configuring ntp file.

    ntp_enabled: true
    ntp_manage_config: true
    ntp_servers:
      - "0.your-ntp-server.org iburst"
      - "1.your-ntp-server.org iburst"
      - "2.your-ntp-server.org iburst"
      - "3.your-ntp-server.org iburst"

    Setting the TimeZone

    The timezone can also be set by the ntp_timezone , eg: "Etc/UTC","Asia/Shanghai". If not set, the timezone will not change.

    ntp_enabled: true
    ntp_timezone: Etc/UTC

    Advanced Configure

    Enable tinker panic is useful when running NTP in a VM environment to avoiding clock drift on VMs. It only takes effect when ntp_manage_config is true.

    ntp_tinker_panic: true

    Force sync time immediately by NTP after the ntp installed, which is useful in newly installed system.

    ntp_force_sync_immediately: true