Skip to content

Commit

Permalink
hotfix(publick8s,privatek8s) set up LB ports amount to valid values (#…
Browse files Browse the repository at this point in the history
…582)

Fixup of #580 

Correct the error

```
Kubernetes Cluster Name: "publick8s-endless-ghoul"): managedclusters.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidLoadBalancerProfileAllocatedOutboundPorts" Message="Load balancer profile allocated ports must be a multiple of 8. Refer to https://aka.ms/aks/slb-ports for more details." Target="networkProfile.loadBalancerProfile.allocatedOutboundPorts"
```

🤦
  • Loading branch information
dduportal authored Jan 17, 2024
1 parent af40e4c commit b676ce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion privatek8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "azurerm_kubernetes_cluster" "privatek8s" {
outbound_type = "loadBalancer"
load_balancer_sku = "standard"
load_balancer_profile {
outbound_ports_allocated = "1400"
outbound_ports_allocated = "1280" # Max 50 Nodes, 64000 total
idle_timeout_in_minutes = "4"
managed_outbound_ip_count = "1"
}
Expand Down
2 changes: 1 addition & 1 deletion publick8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "azurerm_kubernetes_cluster" "publick8s" {
outbound_type = "loadBalancer"
load_balancer_sku = "standard"
load_balancer_profile {
outbound_ports_allocated = "2900"
outbound_ports_allocated = "2560" # Max 25 Nodes, 64000 ports total
idle_timeout_in_minutes = "4"
managed_outbound_ip_count = "1"
}
Expand Down

0 comments on commit b676ce3

Please sign in to comment.