From 22f73d03848fa7c16938d44645cc118e69b1b4b7 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Sun, 13 Nov 2022 08:52:53 +0200 Subject: [PATCH] Use local API server on control plane nodes for clusters without DNS --- nodeup/pkg/model/etc_hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeup/pkg/model/etc_hosts.go b/nodeup/pkg/model/etc_hosts.go index cc0f93874dd51..eff9d92f842fc 100644 --- a/nodeup/pkg/model/etc_hosts.go +++ b/nodeup/pkg/model/etc_hosts.go @@ -35,7 +35,7 @@ func (b *EtcHostsBuilder) Build(c *fi.ModelBuilderContext) error { Name: "control-plane-address", } - if b.IsMaster && b.Cluster.IsGossip() { + if b.IsMaster && (b.Cluster.IsGossip() || b.Cluster.UsesNoneDNS()) { task.Records = append(task.Records, nodetasks.HostRecord{ Hostname: b.Cluster.Spec.MasterInternalName, Addresses: []string{"127.0.0.1"},