vmware-tanzu / tanzu-framework

Tanzu Framework provides a set of building blocks to build atop of the Tanzu platform and leverages Carvel packaging and plugins to provide users with a much stronger, more integrated experience than the loose coupling and stand-alone commands of the previous generation of tools.
Apache License 2.0
197 stars 193 forks source link

NTP server configurability #582

Open tylerschultz opened 2 years ago

tylerschultz commented 2 years ago

(This is used to request new product features)

Describe the feature request As a user of tanzu, I would like the ability to set ntp servers or pools on nodes in my clusters.

While working in an air-gapped environment, we saw etcd was warning about clock drift between the control plane nodes of a management cluster. We could see that none of the default configured ntp pool addresses were reachable.

Describe alternatives you've considered N/A

Affected product area (please put an X in all that apply)

Additional context

mcwumbly commented 2 years ago

Our current workaround for this is to configure the NTP servers on the control plane nodes using this ytt overlay:

#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")

#@overlay/match by=overlay.subset({"kind":"KubeadmControlPlane"})
---
spec:
  kubeadmConfigSpec:
    #@overlay/match missing_ok=True
    ntp:
      enabled: true
      servers:
      - $ip

#@overlay/match by=overlay.subset({"kind":"KubeadmConfigTemplate"})
---
spec:
  template:
    spec:
      #@overlay/match missing_ok=True
      ntp:
        enabled: true
        servers:
        - $ip