mirror of https://github.com/kubernetes/kops.git
Merge pull request #14538 from hakman/fix_none_dns
Use local API server on control plane nodes for clusters without DNS
This commit is contained in:
commit
35dada5b1f
|
@ -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"},
|
||||
|
|
Loading…
Reference in New Issue