russmedia / terraform-google-kubernetes-cluster

GKE Kubernetes cluster with node pool submodule
MIT License
13 stars 11 forks source link

nodes_subnet_service_ip_cidr_range #23

Open dilfuza97 opened 5 years ago

dilfuza97 commented 5 years ago

I'm little confused on the cidr range for all these

nodes_subnet_ip_cidr_range = "10.0.0.0/24" nodes_subnet_container_ip_cidr_range = "172.0.0.0/16" nodes_subnet_service_ip_cidr_range = "10.0.0.0/24"

Could you give me little information about cidr ranges that I should specified here. thank you

ezalejski commented 5 years ago

Hello Dilffuza, please have a look here: https://github.com/russmedia/terraform-google-kubernetes-cluster#subnetworks. Basically if you are running just one cluster you need to choose subnetwork that is within your google_compute_network range and does not exist already. I.e. if your google_compute_network is 10.0.0.0/8 you can choose: nodes_subnet_ip_cidr_range = "10.0.0.0/24" or any other /24 free network within 10.0.0.0/8.