Skip to content

Latest commit

 

History

History
 
 

httpbin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Httpbin service

This sample runs httpbin as an Istio service. Httpbin is a well known HTTP testing service that can be used for experimenting with all kinds of Istio features.

To use it:

  1. Install Istio by following the istio install instructions.

  2. Start the httpbin service inside the Istio service mesh:

    kubectl apply -f <(istioctl kube-inject -f httpbin.yaml)

Because the httpbin service is not exposed outside of the cluster we cannot curl it directly, however we can verify that it is working correctly using a curl command against httpbin:8000 from inside the cluster using the public dockerqa/curl image from the Docker hub:

kubectl run -i --rm --restart=Never dummy --image=dockerqa/curl:ubuntu-trusty --command -- curl --silent httpbin:8000/html
kubectl run -i --rm --restart=Never dummy --image=dockerqa/curl:ubuntu-trusty --command -- curl --silent httpbin:8000/status/500
time kubectl run -i --rm --restart=Never dummy --image=dockerqa/curl:ubuntu-trusty --command -- curl --silent httpbin:8000/delay/5

Alternatively, you can test the httpbin service by configuring an ingress resource or by starting the sleep service and calling httpbin from it.