PROFESSIONAL-CLOUD-NETWORK-ENGINEER · Question #199
Your team deployed two applications in GKE that are exposed through an external Application error. What should you do?
The correct answer is C. Review the Ingress YAML file. Define the default backend. Reapply the YAML. Default Backend for Ingress: The 404 error occurs because there is no default backend configured in the Ingress resource to handle requests to the root path path rules (e.g., /sales or /get-an-analysis) will result in a 404 error. In the Ingress YAML file, you need to define a…
Question
Options
- AReview the Service YAML file. Add a new path rule for the * character that directs to the base
- BReview the Ingress YAML file. Add a new path rule for the * character that directs to the base
- CReview the Ingress YAML file. Define the default backend. Reapply the YAML.
- DReview the Service YAML file. Define a default backend. Reapply the YAML.
How the community answered
(25 responses)- A4% (1)
- B8% (2)
- C72% (18)
- D16% (4)
Explanation
Default Backend for Ingress: The 404 error occurs because there is no default backend configured in the Ingress resource to handle requests to the root path path rules (e.g., /sales or /get-an-analysis) will result in a 404 error. In the Ingress YAML file, you need to define a default backend that handles requests to paths that do not match any specified rules. The default backend should point to a Service in your GKE cluster that serves the appropriate content for the root path. Reapply the YAML: After defining the default backend in the Ingress resource, apply the updated YAML file to resolve the issue and handle requests to the root path.
Topics
Community Discussion
No community discussion yet for this question.