Skip to content

Commit 5a466a5

Browse files
trapierOlly P
authored andcommitted
ucp: fix whitespace on node labels doc (#9395)
what i did: - fix whitespace so markdown numbering is consistent how i tested: 1. build docs locally `docker-compose build; docker-compose up -d` 2. verify numbering corrected 3. deploy compose file through UCP 3.2.1 UI to make sure its spacing was unaffected\* \* note: not addressing outdated screenshots with this commit Signed-off-by: Trapier Marshall <trapier.marshall@docker.com>
1 parent dbee5b0 commit 5a466a5

1 file changed

Lines changed: 51 additions & 51 deletions

File tree

ee/ucp/admin/configure/add-labels-to-cluster-nodes.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ scheduled to run on a node that has the `ssd` label.
3030
2. Select **Nodes** in the left-hand navigation menu.
3131
3. In the nodes list, select the node to which you want to apply labels.
3232
4. In the details pane, select the edit node icon in the upper-right corner to edit the node.
33+
3334
![](../../images/add-labels-to-cluster-nodes-3.png)
3435

3536
5. In the **Edit Node** page, scroll down to the **Labels** section.
3637
6. Select **Add Label**.
3738
7. Add a label with the key `disk` and a value of `ssd`.
3839

39-
![](../../images/add-labels-to-cluster-nodes-2.png){: .with-border}
40+
![](../../images/add-labels-to-cluster-nodes-2.png){: .with-border}
4041

4142
8. Click **Save** then dismiss the **Edit Node** page.
4243
9. In the node's details pane, select **Labels** to view the labels that are applied to the node.
@@ -60,67 +61,66 @@ service to be scheduled only on nodes that have SSD storage:
6061
1. Navigate to the **Stacks** page.
6162
2. Name the new stack "wordpress".
6263
3. Under **Orchestrator Mode**, select **Swarm Services**.
63-
6464
4. In the **docker-compose.yml** editor, paste the following stack file.
6565

66-
```
67-
version: "3.1"
68-
69-
services:
70-
db:
71-
image: mysql:5.7
72-
deploy:
73-
placement:
74-
constraints:
75-
- node.labels.disk == ssd
76-
restart_policy:
77-
condition: on-failure
78-
networks:
79-
- wordpress-net
80-
environment:
81-
MYSQL_ROOT_PASSWORD: wordpress
82-
MYSQL_DATABASE: wordpress
83-
MYSQL_USER: wordpress
84-
MYSQL_PASSWORD: wordpress
85-
wordpress:
86-
depends_on:
87-
- db
88-
image: wordpress:latest
89-
deploy:
90-
replicas: 1
91-
placement:
92-
constraints:
93-
- node.labels.disk == ssd
94-
restart_policy:
95-
condition: on-failure
96-
max_attempts: 3
97-
networks:
98-
- wordpress-net
99-
ports:
100-
- "8000:80"
101-
environment:
102-
WORDPRESS_DB_HOST: db:3306
103-
WORDPRESS_DB_PASSWORD: wordpress
104-
105-
networks:
106-
wordpress-net:
107-
```
66+
```
67+
version: "3.1"
68+
69+
services:
70+
db:
71+
image: mysql:5.7
72+
deploy:
73+
placement:
74+
constraints:
75+
- node.labels.disk == ssd
76+
restart_policy:
77+
condition: on-failure
78+
networks:
79+
- wordpress-net
80+
environment:
81+
MYSQL_ROOT_PASSWORD: wordpress
82+
MYSQL_DATABASE: wordpress
83+
MYSQL_USER: wordpress
84+
MYSQL_PASSWORD: wordpress
85+
wordpress:
86+
depends_on:
87+
- db
88+
image: wordpress:latest
89+
deploy:
90+
replicas: 1
91+
placement:
92+
constraints:
93+
- node.labels.disk == ssd
94+
restart_policy:
95+
condition: on-failure
96+
max_attempts: 3
97+
networks:
98+
- wordpress-net
99+
ports:
100+
- "8000:80"
101+
environment:
102+
WORDPRESS_DB_HOST: db:3306
103+
WORDPRESS_DB_PASSWORD: wordpress
104+
105+
networks:
106+
wordpress-net:
107+
```
108108

109109
5. Click **Create** to deploy the stack, and when the stack deploys,
110110
click **Done**.
111111

112-
![](../../images/use-constraints-in-stack-deployment.png)
112+
![](../../images/use-constraints-in-stack-deployment.png)
113113

114114
6. Navigate to the **Nodes** page, and click the node that has the
115115
`disk` label. In the details pane, click the **Inspect Resource**
116116
dropdown and select **Containers**.
117117

118-
![](../../images/use-constraints-in-stack-deployment-2.png)
118+
![](../../images/use-constraints-in-stack-deployment-2.png)
119119

120-
Dismiss the filter and navigate to the **Nodes** page. Click a node that
121-
doesn't have the `disk` label. In the details pane, click the
122-
**Inspect Resource** dropdown and select **Containers**. There are no
123-
WordPress containers scheduled on the node. Dismiss the filter.
120+
Dismiss the filter and navigate to the **Nodes** page. Click a node that
121+
doesn't have the `disk` label. In the details pane, click the
122+
**Inspect Resource** dropdown and select **Containers**. There are no
123+
WordPress containers scheduled on the node. Dismiss the filter.
124124

125125
## Add a constraint to a service by using the UCP web UI
126126

@@ -143,4 +143,4 @@ You can add or remove deployment constraints on this page.
143143
## Where to go next
144144

145145
- [Collect UCP Cluster Metrics with Prometheus](collect-cluster-metrics.md)
146-
- [Configure UCP Audit Logging](create-audit-logs.md)
146+
- [Configure UCP Audit Logging](create-audit-logs.md)

0 commit comments

Comments
 (0)