giantswarm / azure-operator

Manages Kubernetes clusters running in in a Giant Swarm installation on Microsoft Azure
https://giantswarm.io/
Apache License 2.0
30 stars 7 forks source link

Azure public IP limit #163

Closed TheoBrigitte closed 6 years ago

TheoBrigitte commented 6 years ago

What is the issue ?

We are currently limited to having 8 guest cluster on azure. We hit the following error when trying to create a new guest cluster

{
        "code": "DeploymentFailed",
        "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
        "details": [
                {
                        "code": "BadRequest",
                        "message": "{\r\n \"error\": {\r\n \"code\": \"StaticPublicIPCountLimitReached\",\r\n \"message\": \"Cannot create more than 20 public IP addresses with static allocation method for this subscription in this region.\",\r\n \"details\": []\r\n }\r\n}"
                }
        ]
}

What is the reason ?

ARM static public ip allocation method is limitting us to 20 different public ip per subscription by default. see https://github.com/giantswarm/azure-operator/blob/d3d0da704844bc0fa4e6b95e4fd5867136f9b9e5/service/azureconfig/v1/arm_templates/public_load_balancer_setup.json#L61

We also allocate 2 public ip per cluster (1 api + 1 ingress) and run 2 host cluster (gollum & godsmack).

Solutions

slack discussion https://gigantic.slack.com/archives/C6H0T6W1X/p1521728701000437

TheoBrigitte commented 6 years ago

Tried to fix this issue by switching from static to dynamic IP

But this did not work since dynamic IP are not allocated on creation and therefore prevent us to create a dns A record by referencing the created IP.

TheoBrigitte commented 6 years ago

We agreed to leave this issue for now as it is not critical. I am creating this to share knowledge for later reference.

r7vme commented 6 years ago

Should we close this ticket, as seems that it's standard quota/limit thing?

TheoBrigitte commented 6 years ago

Closing, as quota was raised and now have limit of 100 static public IPs.