Tous les labs

Publish an HTTP route

Intermediate ~24 mink8s

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
  1. An implementation/controller must already exist.
  2. For Gateway API, create HTTPRoute attached to the provided Gateway.
  3. Inspect status conditions after apply.
Indices
Voir la solution
kubectl apply -f route.yaml
kubectl describe ingress api -n app