github.com/cilium/cilium@v1.16.2/Documentation/network/servicemesh/http.rst (about) 1 .. only:: not (epub or latex or html) 2 3 WARNING: You are looking at unreleased Cilium documentation. 4 Please use the official rendered version released here: 5 https://docs.cilium.io 6 7 .. _gs_ingress_http: 8 9 ******************** 10 Ingress HTTP Example 11 ******************** 12 13 The example ingress configuration routes traffic to backend services from the 14 ``bookinfo`` demo microservices app from the Istio project. 15 16 .. include:: demo-app.rst 17 18 .. _gs_basic_ingress: 19 20 .. include:: basic-ingress.rst 21 22 Make HTTP Requests 23 ================== 24 25 Check (with ``curl`` or in your browser) that you can make HTTP requests to that 26 external address. The ``/`` path takes you to the home page for the bookinfo 27 application. 28 29 From outside the cluster you can also make requests directly to the ``details`` 30 service using the path ``/details``. But you can't directly access other URL paths 31 that weren't defined in ``basic-ingress.yaml``. 32 33 For example, you can get JSON data from a request to ``<address>/details/1`` and 34 get back some data, but you will get a 404 error if you make a request to ``<address>/ratings``. 35 36 .. code-block:: shell-session 37 38 $ HTTP_INGRESS=$(kubectl get ingress basic-ingress -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 39 $ curl --fail -s http://"$HTTP_INGRESS"/details/1 | jq 40 { 41 "id": 1, 42 "author": "William Shakespeare", 43 "year": 1595, 44 "type": "paperback", 45 "pages": 200, 46 "publisher": "PublisherA", 47 "language": "English", 48 "ISBN-10": "1234567890", 49 "ISBN-13": "123-1234567890" 50 } 51