mirror of https://github.com/docker/docs.git
updates to add nodes topic
This commit is contained in:
parent
9d632cf4a0
commit
9c71ea4612
|
|
@ -18,7 +18,7 @@ lifecycle, or the hardware resources they have.
|
|||
Don't create labels for authorization and permissions to resources.
|
||||
Instead, use resource sets, either UCP collections or Kubernetes namespaces,
|
||||
to organize access to your cluster.
|
||||
[Learn about managing access with resource sets](../../authorization/group-resources.md).
|
||||
[Learn about managing access with resource sets](../../authorization/group-resources.md).
|
||||
|
||||
## Apply labels to a node
|
||||
|
||||
|
|
@ -26,18 +26,20 @@ In this example we'll apply the `ssd` label to a node. Then we'll deploy
|
|||
a service with a deployment constraint to make sure the service is always
|
||||
scheduled to run on a node that has the `ssd` label.
|
||||
|
||||
Log in with administrator credentials in the UCP web UI, navigate to the
|
||||
**Nodes** page, and choose the node you want to apply labels to. In the
|
||||
details pane, click **Configure**.
|
||||
1. Log in with administrator credentials in the UCP web interface.
|
||||
2. Select **Nodes** in the left-hand navigation menu.
|
||||
3. In the nodes list, select the node to which you want to apply labels.
|
||||
4. In the details pane, select the edit node icon in the upper-right corner to edit the node.
|
||||

|
||||
|
||||
In the **Edit Node** page, scroll down to the **Labels** section.
|
||||
|
||||
Click **Add Label**, and add a label with the key `disk` and a value of `ssd`.
|
||||
5. In the **Edit Node** page, scroll down to the **Labels** section.
|
||||
6. Select **Add Label**.
|
||||
7. Add a label with the key `disk` and a value of `ssd`.
|
||||
|
||||
{: .with-border}
|
||||
|
||||
Click **Save** and dismiss the **Edit Node** page. In the node's details
|
||||
pane, click **Labels** to view the labels that are applied to the node.
|
||||
8. Click **Save** then dismiss the **Edit Node** page.
|
||||
9. In the node's details pane, select **Labels** to view the labels that are applied to the node.
|
||||
|
||||
You can also do this from the CLI by running:
|
||||
|
||||
|
|
@ -110,13 +112,13 @@ click **Done**.
|
|||
|
||||
Navigate to the **Nodes** page, and click the node that has the
|
||||
`disk` label. In the details pane, click the **Inspect Resource**
|
||||
dropdown and select **Containers**.
|
||||
dropdown and select **Containers**.
|
||||
|
||||

|
||||
|
||||
Dismiss the filter and navigate to the **Nodes** page. Click a node that
|
||||
doesn't have the `disk` label. In the details pane, click the
|
||||
**Inspect Resource** dropdown and select **Containers**. There are no
|
||||
**Inspect Resource** dropdown and select **Containers**. There are no
|
||||
WordPress containers scheduled on the node. Dismiss the filter.
|
||||
|
||||
## Add a constraint to a service by using the UCP web UI
|
||||
|
|
@ -125,13 +127,13 @@ You can declare the deployment constraints in your docker-compose.yml file or
|
|||
when you're creating a stack. Also, you can apply them when you're creating
|
||||
a service.
|
||||
|
||||
To check if a service has deployment constraints, navigate to the
|
||||
To check if a service has deployment constraints, navigate to the
|
||||
**Services** page and choose the service that you want to check.
|
||||
In the details pane, click **Constraints** to list the constraint labels.
|
||||
|
||||
To edit the constraints on the service, click **Configure** and select
|
||||
**Details** to open the **Update Service** page. Click **Scheduling** to
|
||||
view the constraints.
|
||||
view the constraints.
|
||||
|
||||

|
||||
|
||||
|
|
@ -140,5 +142,3 @@ You can add or remove deployment constraints on this page.
|
|||
## Where to go next
|
||||
|
||||
- [Store logs in an external system](store-logs-in-an-external-system.md)
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 51 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
Loading…
Reference in New Issue