You plan to expose an Internal HTTP(S) Load Balancer for a private GKE cluster that lives in the subnet "web-subnet" (10.0.0.0/20) of VPC "prod-vpc" in region us-central1. The application team requires that the virtual IP 10.0.100.10 remain fixed even if the load balancer is recreated. Which gcloud action should you perform before creating the load balancer to meet this requirement while following Google-recommended practice?
Skip reserving an address and set the annotation loadBalancerIP: "10.0.100.10" on the Kubernetes Service; the IP will be held automatically.
Add 10.0.100.10 as a reserved address in a Cloud NAT gateway attached to prod-vpc.
A regional static internal address must be reserved ahead of time so the forwarding rule for the Internal HTTP(S) Load Balancer can reference it. The reservation must be scoped to the same region as the subnet, specify that subnet, supply the desired address, and set purpose to SHARED_LOADBALANCER_VIP. Reserving a global static IP in Google Cloud allocates a global anycast external IP, not an internal one, so it would not satisfy the requirement. Kubernetes annotations alone do not guarantee that the IP remains allocated to your project; if the address is not pre-reserved, it is released when the Service is deleted. Cloud NAT uses external addresses to provide egress for private VMs and has no effect on an internal frontend address.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does SHARED_LOADBALANCER_VIP in the gcloud command signify?
Open an interactive chat with Bash
Why is a static internal IP address necessary for an Internal HTTP(S) Load Balancer?
Open an interactive chat with Bash
How does the Kubernetes Service annotation loadBalancerIP differ from reserving an address in gcloud?
Open an interactive chat with Bash
What is an Internal HTTP(S) Load Balancer in GCP?
Open an interactive chat with Bash
What is a SHARED_LOADBALANCER_VIP and why is it required?
Open an interactive chat with Bash
How does reserving a static regional internal IP address prevent issues with the load balancer?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .