In our case the service is exposed under the knative-vertx-asciidoctor.default.example.com
domain.
It is available via the istio-ingressgateway
service (check all available services with kubectl get services --all-namespaces
).
With Minikube, making a request to the function is similar to:
$ http POST $(minikube ip):31380 'Host:knative-vertx-asciidoctor.default.example.com' @README.adoc
You should see HTML in the response.
You should also see pods for your service:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
knative-vertx-asciidoctor-mlhwq-deployment-5cc999bdb7-jx2ff 3/3 Running 0 2m5s
After a while, you can check that the Knative auto-scaler has removed all pods:
$ kubectl get pods
No resources found.
Issue a new request, and see that new pods have been created again.