mirror of https://github.com/kubernetes/kops.git
Always include load balancer domain in APIServer certificate
This commit is contained in:
parent
ce389c4980
commit
b024338768
|
|
@ -187,6 +187,7 @@ func (b *APILoadBalancerBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
TargetGroups: make([]*awstasks.TargetGroup, 0),
|
||||
|
||||
Tags: tags,
|
||||
ForAPIServer: true,
|
||||
VPC: b.LinkToVPC(),
|
||||
Type: fi.PtrTo("network"),
|
||||
IpAddressType: fi.PtrTo("ipv4"),
|
||||
|
|
@ -225,6 +226,7 @@ func (b *APILoadBalancerBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
},
|
||||
|
||||
Tags: tags,
|
||||
ForAPIServer: true,
|
||||
}
|
||||
|
||||
if b.Cluster.UsesNoneDNS() {
|
||||
|
|
@ -592,13 +594,6 @@ func (b *APILoadBalancerBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
}
|
||||
}
|
||||
|
||||
if b.Cluster.IsGossip() || b.Cluster.UsesPrivateDNS() || b.Cluster.UsesNoneDNS() {
|
||||
// Ensure the LB hostname is included in the TLS certificate,
|
||||
// if we're not going to use an alias for it
|
||||
clb.ForAPIServer = true
|
||||
nlb.ForAPIServer = true
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue