Skip to content

Commit

Permalink
Use Chrony for synchronizing time in Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Nov 4, 2021
1 parent 10cbb9b commit 62952ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/kops/create_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
group.Spec.AssociatePublicIP = c.AssociatePublicIP
}
}
for _, group := range instanceGroups {
group.Spec.Image = strings.ReplaceAll(group.Spec.Image, "arm64", "amd64")
}

if c.MasterTenancy != "" {
for _, group := range masters {
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/model/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (b *NTPBuilder) Build(c *fi.ModelBuilderContext) error {
}

if b.Distribution.IsDebianFamily() {

// Ubuntu recommends systemd-timesyncd, but on ubuntu on GCE systemd-timesyncd is blocked (in favor of chrony)
if b.Distribution.IsUbuntu() && !b.RunningOnGCE() {
if ntpHost != "" {
Expand Down

0 comments on commit 62952ff

Please sign in to comment.