You need to define an address plan for a future new GKE cluster in your VPC. This will be a VPC native cluster, and the default Pod IP range allocation will be used. You must pre-provision all the needed VPC subnets and their respective IP address ranges before cluster creation. The cluster will initially have a single node, but it will be scaled to a maximum of three nodes if necessary. You want to allocate the minimum number of Pod IP addresses.
Which subnet mask should you use for the Pod IP address range?
A. /21
B. /22
C. /23
D. /25
B.
Potential causes
Unallocated space in the Pod IP address range is not large enough for the nodes requested in the cluster. For example, if a cluster’s Pod IP address range has a netmask whose size is /23 (512 address), and the maximum Pods per node is 110, you cannot create any more than two nodes. (Each node is assigned an alias IP address range with a netmask whose size is /24.)
Agree B: https://cloud.google.com/kubernetes-engine/docs/how-to/alias-ips#cluster_sizing_secondary_range_pods
B is correct. You need 3× 256 IP addresses for Pods. (Each node is allocated an alias IP range whose netmask’s size is /24.) This cluster requires a subnet whose secondary IP range for Pods has a subnet mask no larger than /22.