Skip to content

Commit f775377

Browse files
tthvoopenshift-cherrypick-robot
authored andcommitted
OCPBUGS-54502: ensure ctrplane nodes can access bootstrap MCS
When using BYO subnets, users might define subnets in aws.vpc.subnets and define the machineCIDRs in the installconfig from those subnets. Previously, an SG is attached to api lb that only allows ingress to tcp/22623 (MCS) from the only the first machineCIDR, which blocks master nodes from reaching MCS on bootstrap node. This commit adjusts the source for the SG to allow ingress from control plane nodes via SG reference instead of relying on the machineCIDR field.
1 parent 1a3d64c commit f775377

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/asset/manifests/aws/cluster.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ func GenerateClusterAssets(ic *installconfig.InstallConfig, clusterID *installco
185185
},
186186
IngressRules: []capa.IngressRule{
187187
{
188-
Description: "Machine Config Server internal traffic from cluster",
189-
Protocol: capa.SecurityGroupProtocolTCP,
190-
FromPort: 22623,
191-
ToPort: 22623,
192-
CidrBlocks: []string{capiutils.CIDRFromInstallConfig(ic).String()},
188+
Description: "Machine Config Server internal traffic from cluster",
189+
Protocol: capa.SecurityGroupProtocolTCP,
190+
FromPort: 22623,
191+
ToPort: 22623,
192+
SourceSecurityGroupRoles: []capa.SecurityGroupRole{"node", "controlplane"},
193193
},
194194
},
195195
},

0 commit comments

Comments
 (0)