Configuring IP ranges #858
-
Hello, I want to set specific IP ranges for the cluster VMs. It looks like network_ipv4_cidr and cluster_ipv4_cidr are intended for this purpose. However, the comments above these parameters state that it is "highly advised against". Could you please elaborate why that is so? Also, I tried applying new IP ranges and that did not seem to work. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@dercorn You have to get it right. From memory, cluster_ipv4_cidr needs to be a subset of network_ipv4_cidr. If that does not work, have a look over at locals.tf how the subnets are calculated, you will understand better how to safely change these IP ranges. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply! However, when I deploy a cluster with these settings, I get IPs like: Looking at locals.tf in line 90, I see that 10.1.0.0/16 is the default for control plane nodes. Then, looking at line 92 which looks like this: This creates a list of 256 subnets ranging from 10.0.0.0/16 to 10.255.0.0/16. Long story short, if I want to have all the cloud VMs within a 10.0.5.0/24 subnet, it will not be possible without a code change. Or am I missing something? |
Beta Was this translation helpful? Give feedback.
-
Thank you! That answers my question. |
Beta Was this translation helpful? Give feedback.
Exactly, currently it would not be possible without code change.