Skip to content

Commit

Permalink
Merge pull request #15614 from hakman/gce_bastion_ssh_rules
Browse files Browse the repository at this point in the history
gce: Rename firewall SSH rules for bastion
  • Loading branch information
k8s-ci-robot committed Jul 10, 2023
2 parents 4ad116e + 53e4588 commit 4b79e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/model/gcemodel/external_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ func (b *ExternalAccessModelBuilder) Build(c *fi.CloudupModelBuilderContext) err
SourceRanges: b.Cluster.Spec.SSHAccess,
Network: network,
})
b.AddFirewallRulesTasks(c, "bastion-to-master", &gcetasks.FirewallRule{
b.AddFirewallRulesTasks(c, "bastion-to-master-ssh", &gcetasks.FirewallRule{
Lifecycle: b.Lifecycle,
TargetTags: []string{b.GCETagForRole(kops.InstanceGroupRoleControlPlane), b.GCETagForRole("Master")},
Allowed: []string{"tcp:22"},
SourceTags: []string{b.GCETagForRole(kops.InstanceGroupRoleBastion)},
Network: network,
})
b.AddFirewallRulesTasks(c, "bastion-to-node", &gcetasks.FirewallRule{
b.AddFirewallRulesTasks(c, "bastion-to-node-ssh", &gcetasks.FirewallRule{
Lifecycle: b.Lifecycle,
TargetTags: []string{b.GCETagForRole(kops.InstanceGroupRoleNode)},
Allowed: []string{"tcp:22"},
Expand Down

0 comments on commit 4b79e04

Please sign in to comment.