acs-engine-terraform icon indicating copy to clipboard operation
acs-engine-terraform copied to clipboard

Error Private IP Address Is Allocated

Open conor123 opened this issue 7 years ago • 1 comments

All goes well until:

"error": { "code": "PrivateIPAddressIsAllocated", "message": "IP configuration /subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/k8sexample/providers/Microsoft.Network/networkInterfaces/k8s-master-12345678-nic-0/ipConfigurations/ipconfig1 is using the private IP address 172.20.10.10 which is already allocated to resource /subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/k8sexample/providers/Microsoft.Network/networkInterfaces/k8s-agentpool1-12345678-nic-0.",

conor123 avatar Jan 16 '18 17:01 conor123

I seemed to get pass that by:

  1. Using a /22 or larger subnet
  2. Setting the parameter for "firstConsecutiveStaticIP" somewhere in the middle of the subnet range first_master_ip = "${cidrhost(var.cluster_subnet, 250)}" // Take the subnet and replace the 4th octet with a 250.
  3. Using the "vnetCidr" parameter within MasterProfile

"masterProfile": { "count": ${master_node_count}, "dnsPrefix": "${cluster_name}", "vmSize": "${vm_type}", "vnetCidr": "${vnet_cidr}", "firstConsecutiveStaticIP": "${first_master_ip}", "storageProfile": "ManagedDisks" },

jgrossmac avatar Jul 09 '18 23:07 jgrossmac