Skip to content

Commit 699ddf0

Browse files
authored
Adding documentation for how to issue curl requests (#347)
Signed-off-by: Aaron Schlesinger <[email protected]>
1 parent c076979 commit 699ddf0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/walkthrough.md

+12
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,15 @@ An [`Ingress`](https://kubernetes.io/docs/concepts/services-networking/ingress/)
6565
When you're ready, please run `kubectl get svc -n ${NAMESPACE}`, find the `ingress-nginx-controller` service, and copy and paste its `EXTERNAL-IP`. This is the IP address that your application will be running at on the public internet.
6666

6767
>Note: you should go further and set your DNS records appropriately and set up a TLS certificate for this IP address. Instructions to do that are out of scope of this document, though.
68+
69+
### Making an HTTP Request to your App
70+
71+
Now that you have your application running and your ingress configured, you can issue an HTTP request. To do so, you'll need to know the IP address to request. If you're using an ingress controller, that is the IP of the ingress controller's `Service`. If you're using a "raw" `Service` with `type: LoadBalancer`, that is the IP address of the `Service` itself.
72+
73+
Regardless, you can use the below `curl` command to make a request to your application:
74+
75+
```shell
76+
curl -H "Host: myhost.com" <Your IP>
77+
```
78+
79+
>Note the `-H` flag above to specify the `Host` header. This is needed to tell the interceptor how to route the request. If you have a DNS name set up for the IP, you don't need this header.

0 commit comments

Comments
 (0)