|
2 | 2 |
|
3 | 3 | A Deis application [stores config in environment variables][]. |
4 | 4 |
|
| 5 | + |
5 | 6 | ## Setting Environment Variables |
6 | 7 |
|
7 | 8 | Use `deis config` to modify environment variables for a deployed application. |
@@ -205,9 +206,30 @@ TCP Socket Probe: N/A |
205 | 206 | Configured health checks also modify the default application deploy behavior. When starting a new |
206 | 207 | Pod, Workflow will wait for the health check to pass before moving onto the next Pod. |
207 | 208 |
|
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 | + |
209 | 229 | [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/ |
211 | 232 | [release]: ../reference-guide/terms.md#release |
212 | 233 | [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 |
0 commit comments