Azure AKS static IP Address

7/26/2018

Currently per Microsoft documentation you can set a static IP address on the resource group of the kubernetes service. Problem with this is if you delete the resource group / cluster then the static IP address is also gone.

https://docs.microsoft.com/en-us/azure/aks/static-ip

Is there a way to connect Reserved IP address in Azure to link to AKS so that the IP address is guaranteed ?

enter image description here

-- user3385105
azure
azure-kubernetes
kubernetes

2 Answers

7/27/2018

As I know, there are two types of the public IP in Azure, such as dynamic and static. But whether it is static or dynamic, we cannot set a specific IP ourselves. The IP is randomly assigned by Azure. The types just describe the lifetime of the Public IP.

Just the IP included in the Vnet which we designed can be assigned to a specified one with the static type as we want.

Reference document: https://docs.microsoft.com/en-au/azure/aks/static-ip

-- Charles Xu
Source: StackOverflow

7/27/2018

In the ARM deployment model, a Public IP Address (PIP) is an entity/resource all of its own. A PIP's are available as either dynamic or static. Dynamic is cheaper, static is more expensive as there is a finite amount of them in IPv4.

Yes, you can assign a PIP to AKS - see reference https://docs.microsoft.com/en-us/azure/aks/static-ip#use-a-static-ip-address-outside-of-the-node-resource-group

To ensure you don't lose your PIP, keep that in a seperate Resource Group from the Resource Group that contains resources that are volatile that may be deleted often.

-- Lucian Franghiu
Source: StackOverflow