Skip to content

Commit

Permalink
Merge pull request #14538 from hakman/fix_none_dns
Browse files Browse the repository at this point in the history
Use local API server on control plane nodes for clusters without DNS
  • Loading branch information
k8s-ci-robot committed Nov 13, 2022
2 parents 94720a7 + 22f73d0 commit 35dada5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeup/pkg/model/etc_hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 35dada5

Please sign in to comment.