Add deploy a service to UCP

This commit is contained in:
Joao Fernandes 2017-01-30 16:48:59 -08:00
parent 2b7412d72b
commit b7a5698641
6 changed files with 50 additions and 0 deletions

View File

@ -1207,6 +1207,8 @@ toc:
title: CLI-based access
- sectiontitle: Deploy an application
section:
- path: /datacenter/ucp/2.1/guides/user/applications/deploy-a-service/
title: Deploy a service
- path: /datacenter/ucp/2.1/guides/user/applications/
title: Deploy an app from the UI
- path: /datacenter/ucp/2.1/guides/user/applications/deploy-app-cli/

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

View File

@ -0,0 +1,48 @@
---
title: Deploy a service
description: Learn how to deploy services to a cluster managed by Universal Control Plane.
keywords: docker, ucp, deploy, service
---
You can deploy and monitor your services from the UCP web UI. In this example
we'll deploy an NGINX web server, and make it accessible on port `8000`.
Navigate to the **UCP web UI**, click the **Resources** tab, and choose
**Services**.
![](../../images/deploy-a-service-1.png){: .with-border}
Click the **Create a Service** button to deploy the NGINX service.
![](../../images/deploy-a-service-2.png){: .with-border}
Fill-in the following fields:
| Field | Value |
|:--------------|:------|
| Service name | nginx |
| Image name | nginx |
| Internal port | 80 |
| Public port | 8000 |
![](../../images/deploy-a-service-3.png){: .with-border}
Once you've specified the service image and ports, click **Deploy now** to
deploy the service into a node in the UCP cluster.
Once the service is up and running, you'll be able to see the default NGINX
page, by going to `http://<node-ip>:8000`.
![](../../images/deploy-a-service-4.png){: .with-border}
## Deploy from the CLI
You can also deploy the same service from the CLI. Once you've set up your
[UCP client bundle](../access-ucp/cli-based-access.md), run:
```none
docker service create --name nginx \
--publish 8000:80 \
--label com.docker.ucp.access.owner=<your-username> \
nginx
```