mirror of https://github.com/docker/docs.git
Update layer-7-routing.md
This commit is contained in:
parent
3367a96037
commit
d2b5d6cdbb
|
@ -439,59 +439,3 @@ dockerdemo-ingress dockerdemo.app.docker.example.com 80 7d
|
|||
Assuming you have already registered a DNS record for your application pointing to the external load-balancer fronting the `infra` nodes, you should be able to access your application using the URL.You can also scale the docker demo deployment to test how ingress correctly routes traffic to all the backend pods!
|
||||
|
||||

|
||||
|
||||
## Check your deployment
|
||||
|
||||
The `default-http-backend` provides a simple service that serves a 404 page
|
||||
at `/` and serves 200 on the `/healthz` endpoint.
|
||||
|
||||
1. Navigate to the **Controllers** page and confirm that the
|
||||
**default-http-backend** and **nginx-ingress-controller** objects are
|
||||
scheduled.
|
||||
|
||||
> Scheduling latency
|
||||
>
|
||||
> It may take several seconds for the HTTP backend and the ingress controller's
|
||||
> `Deployment` and `ReplicaSet` objects to be scheduled.
|
||||
{: .important}
|
||||
|
||||
{: .with-border}
|
||||
|
||||
2. When the workload is running, navigate to the **Load Balancers** page
|
||||
and click the **ingress-nginx** service.
|
||||
|
||||
{: .with-border}
|
||||
|
||||
3. In the details pane, click the first URL in the **Ports** section.
|
||||
|
||||
A new page opens, displaying `default backend - 404`.
|
||||
|
||||
## Check your deployment from the CLI
|
||||
|
||||
From the command line, confirm that the deployment is running by using
|
||||
`curl` with the URL that's shown on the details pane of the **ingress-nginx**
|
||||
service.
|
||||
|
||||
```bash
|
||||
curl -I http://<ucp-ip>:<ingress port>/
|
||||
```
|
||||
|
||||
This command returns the following result.
|
||||
|
||||
```
|
||||
HTTP/1.1 404 Not Found
|
||||
Server: nginx/1.13.8
|
||||
```
|
||||
|
||||
Test the server's health ping service by appending `/healthz` to the URL.
|
||||
|
||||
```bash
|
||||
curl -I http://<ucp-ip>:<ingress port>/healthz
|
||||
```
|
||||
|
||||
This command returns the following result.
|
||||
|
||||
```
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx/1.13.8
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue