Skip to content

Commit

Permalink
Fix inbound rule to allow only 6443 port
Browse files Browse the repository at this point in the history
Signed-off-by: Prajyot-Parab <[email protected]>
  • Loading branch information
Prajyot-Parab committed Mar 21, 2023
1 parent d523cf1 commit eaa7168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud/scope/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ func (s *ClusterScope) updateDefaultSG(sgID string) error {
options.SetSecurityGroupID(sgID)
options.SetSecurityGroupRulePrototype(&vpcv1.SecurityGroupRulePrototype{
Direction: core.StringPtr("inbound"),
Protocol: core.StringPtr("all"),
Protocol: core.StringPtr("tcp"),
IPVersion: core.StringPtr("ipv4"),
PortMin: core.Int64Ptr(6443),
PortMax: core.Int64Ptr(6443),
})
_, _, err := s.IBMVPCClient.CreateSecurityGroupRule(options)
if err != nil {
Expand Down

0 comments on commit eaa7168

Please sign in to comment.