Skip to content

Commit bdf2472

Browse files
author
Matthew Fisher
committed
feat(docs): document deis tags under the "Applications" section
1 parent 88b7353 commit bdf2472

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

src/applications/managing-app-configuration.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
A Deis application [stores config in environment variables][].
44

5+
56
## Setting Environment Variables
67

78
Use `deis config` to modify environment variables for a deployed application.
@@ -205,9 +206,30 @@ TCP Socket Probe: N/A
205206
Configured health checks also modify the default application deploy behavior. When starting a new
206207
Pod, Workflow will wait for the health check to pass before moving onto the next Pod.
207208

208-
[Slugbuilder]: ../understanding-workflow/components.md#builder-builder-slugbuilder-and-dockerbuilder
209+
210+
## Isolate the Application
211+
212+
Workflow supports isolating applications onto a set of nodes using `deis tags`.
213+
214+
!!! note
215+
In order to use tags, you must first launch your cluster with the proper node labels. If you do
216+
not, tag commands will fail. Learn more by reading ["Assigning Pods to Nodes"][pods-to-nodes].
217+
218+
Once your nodes are configured with appropriate label selectors, use `deis tags:set` to restrict
219+
the application to those nodes:
220+
221+
```
222+
$ deis tags:set environ=prod
223+
Applying tags... done, v4
224+
225+
environ prod
226+
```
227+
228+
209229
[attached resources]: http://12factor.net/backing-services
210-
[stores config in environment variables]: http://12factor.net/config
230+
[kubernetes-probes]: http://kubernetes.io/docs/user-guide/pod-states/#container-probes
231+
[pods-to-nodes]: http://kubernetes.io/docs/user-guide/node-selection/
211232
[release]: ../reference-guide/terms.md#release
212233
[router]: ../understanding-workflow/components.md#router
213-
[kubernetes-probes]: http://kubernetes.io/docs/user-guide/pod-states/#container-probes
234+
[Slugbuilder]: ../understanding-workflow/components.md#builder-builder-slugbuilder-and-dockerbuilder
235+
[stores config in environment variables]: http://12factor.net/config

src/managing-workflow/security-considerations.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ with `region=us-east-1`, you can configure an application to be deployed to us-w
2222
by using `deis tags set region=us-west-1`. Workflow will pass this configuration
2323
along to Kubernetes, which will schedule your application in different regions.
2424

25+
See [Isolate the Application][] for more information.
26+
2527
# Running Workflow on Public Clouds
2628

2729
If you are running on a public cloud without security group features, you will have to set up
@@ -65,3 +67,6 @@ Application level whitelisting can also be done using the Deis client. To add/re
6567
$ deis whitelist -a drafty-zaniness
6668
=== drafty-zaniness Whitelisted Addresses
6769
10.0.1.0/24
70+
71+
72+
[Isolate the Application]: ../applications/managing-app-configuration.md#isolate-the-application

0 commit comments

Comments
 (0)