You need to create a GKE cluster in an existing VPC that is accessible from on-premises. You must meet the following requirements:
– IP ranges for pods and services must be as small as possible.
– The nodes and the master must not be reachable from the internet.
– You must be able to use kubectl commands from on-premises subnets to manage the cluster.
How should you create the GKE cluster?
A. 1. Create a private cluster that uses VPC advanced routes.
2. Set the pod and service ranges as /24.
3. Set up a network proxy to access the master.
B. 1. Create a VPC-native GKE cluster using GKE-managed IP ranges.
2. Set the pod IP range as /21 and service IP range as /24.
3. Set up a network proxy to access the master.
C. 1. Create a VPC-native GKE cluster using user-managed IP ranges.
2. Enable a GKE cluster network policy, set the pod and service ranges as /24.
3. Set up a network proxy to access the master. “¢ Enable master authorized networks.
D. 1. Create a VPC-native GKE cluster using user-managed IP ranges.
2. Enable privateEndpoint on the cluster master. “¢ Set the pod and service ranges as /24.
3. Set up a network proxy to access the master. “¢ Enable master authorized networks.
Answer
D