mirror of https://github.com/kubernetes/kops.git
fix: fixed an edge case with setting NodePort access in Hetzner Cloud
This commit is contained in:
parent
edac43faed
commit
6a7723176d
|
@ -127,7 +127,7 @@ func (b *ExternalAccessModelBuilder) Build(c *fi.CloudupModelBuilderContext) err
|
|||
nodesFirewall.Rules = append(nodesFirewall.Rules, &hetznertasks.FirewallRule{
|
||||
Direction: string(hcloud.FirewallRuleDirectionIn),
|
||||
SourceIPs: nodePortAccess,
|
||||
Protocol: string(hcloud.FirewallRuleProtocolTCP),
|
||||
Protocol: string(hcloud.FirewallRuleProtocolUDP),
|
||||
Port: fi.PtrTo(fmt.Sprintf("%d-%d", nodePortRange.Base, nodePortRange.Base+nodePortRange.Size-1)),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue