The module lifecycle stage: General Availability
How do I disable chrony and use NTP daemon on nodes?
-
Disable usage of chrony module.
-
Create
NodeGroupConfigurationcustom step to enable use NTP daemon on nodes (example forsystemd-timesyncd):apiVersion: deckhouse.io/v1alpha1 kind: NodeGroupConfiguration metadata: name: enable-ntp-on-node.sh spec: weight: 100 nodeGroups: ["*"] bundles: ["*"] content: | if [ -f /etc/systemd/system/kubelet.service.d/20-d8-early-time-sync.conf ] || [ -f /etc/systemd/system/nodelet.service.d/20-d8-early-time-sync.conf ]; then rm -f /etc/systemd/system/kubelet.service.d/20-d8-early-time-sync.conf rm -f /etc/systemd/system/nodelet.service.d/20-d8-early-time-sync.conf systemctl daemon-reload fi rm -f /var/run/node-exporter-textfile/d8_early_time_sync.prom systemctl enable systemd-timesyncd systemctl start systemd-timesyncdThe script removes the boot-time synchronization drop-ins and metric file that remain after disabling the module.