Skip to content

Commit deef8f9

Browse files
committed
CORS-2902: capi/aws: make int-LB the primary CAPI load balancer
Because it is always created. The ext-LB, when needed, will be added as a secondary LB.
1 parent 2cc528d commit deef8f9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pkg/asset/manifests/aws/cluster.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,24 @@ func GenerateClusterAssets(installConfig *installconfig.InstallConfig, clusterID
151151
PresignedURLDuration: &metav1.Duration{Duration: 1 * time.Hour},
152152
},
153153
ControlPlaneLoadBalancer: &capa.AWSLoadBalancerSpec{
154-
Name: ptr.To(clusterID.InfraID + "-ext"),
154+
Name: ptr.To(clusterID.InfraID + "-int"),
155155
LoadBalancerType: capa.LoadBalancerTypeNLB,
156-
Scheme: &capa.ELBSchemeInternetFacing,
156+
Scheme: &capa.ELBSchemeInternal,
157157
AdditionalListeners: []capa.AdditionalListenerSpec{
158158
{
159159
Port: 22623,
160160
Protocol: capa.ELBProtocolTCP,
161161
},
162162
},
163+
IngressRules: []capa.IngressRule{
164+
{
165+
Description: "Machine Config Server internal traffic from cluster",
166+
Protocol: capa.SecurityGroupProtocolTCP,
167+
FromPort: 22623,
168+
ToPort: 22623,
169+
CidrBlocks: []string{mainCIDR.String()},
170+
},
171+
},
163172
},
164173
},
165174
}

0 commit comments

Comments
 (0)