
Answer-first summary for fast verification
Answer: Modify the existing Ingress resource with a host rule matching the new domain
The correct approach is to modify the existing Ingress resource to add a host rule for the new domain. Google Kubernetes Engine (GKE) uses the Ingress resource to configure the Google Cloud HTTP(S) Load Balancer. A single Ingress can handle multiple hostnames by defining multiple host rules. By updating the existing Ingress (option B), the same load balancer and IP address will route traffic to the appropriate backend services based on the domain name. Creating a new Ingress (options A or D) would result in a separate load balancer with a different IP, which violates the requirement. Option C uses a Service of type LoadBalancer, which creates a network-tier load balancer (not HTTP/S) and does not support host-based routing.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you deploy a new European version of a website on Google Kubernetes Engine while maintaining access to both the current and new sites through the same HTTP(S) load balancer's external IP address, but with different domain names?
A
Define a new Ingress resource with a host rule matching the new domain
B
Modify the existing Ingress resource with a host rule matching the new domain
C
Create a new Service of type LoadBalancer specifying the existing IP address as the loadBalancerIP
D
Generate a new Ingress resource and specify the existing IP address as the kubernetes.io/ingress.global-static-ip-name annotation value
No comments yet.