I'm trying to create a private cluster in GCP as per the steps mentioned here: https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters
As per this, the ipv4 address for the master node is set to 172.16.0.32/28. I have also seen that the same CIDR blocks are used in many other examples as well. Is there a restriction that only this particular CIDR block should be used for master when configuring a GKE private cluster? If yes, then, can my VPC/subnets have a different range of CIDR , for ex, 10.1.0.0/16? As in, can the master node reside in one subnet and the nodes in a different subnet?
If there is no restriction on the master ipv4 address range, then can I use any RFC1918 range for this?
The only restrictions, based on [1] public documentation, are:
So basically you can use any private ip range that does not violates any of the rules stated before.
[1] https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#limitations