Route requests for app.example.test/api to Service api port 80 in namespace app using either Ingress or Gateway API.
Objectifs
- Create HTTP routing object
- Match host app.example.test and path prefix /api
- Reference Service api port 80
Étapes suggérées
- An implementation/controller must already exist.
- For Gateway API, create HTTPRoute attached to the provided Gateway.
- Inspect status conditions after apply.
Indices
Voir la solution
kubectl apply -f route.yaml kubectl describe ingress api -n app