Small improvements to docs
This PR fixes an incorrect placement of the update stanza in the task and also links from the env stanza into an example of using the template block to generate dynamic environment variables.
This commit is contained in:
parent
ce8e7ec445
commit
9476d0b210
|
@ -74,4 +74,11 @@ env {
|
|||
}
|
||||
```
|
||||
|
||||
### Dynamic Environment Variables
|
||||
|
||||
Nomad also supports populating dynamic environment variables from data stored in
|
||||
HashiCorp Consul and Vault. To use this feature please see the documentation on
|
||||
the [`template` stanza][template-env].
|
||||
|
||||
[interpolation]: /docs/runtime/interpolation.html "Nomad interpolation"
|
||||
[template-env]: /docs/job-specification/template.html#environment-variables "Nomad template Stanza"
|
||||
|
|
|
@ -39,9 +39,6 @@ job "docs" {
|
|||
group "api" {
|
||||
count = 5
|
||||
|
||||
task "api-server" {
|
||||
driver = "docker"
|
||||
|
||||
update {
|
||||
max_parallel = 1
|
||||
canary = 5
|
||||
|
@ -50,6 +47,9 @@ job "docs" {
|
|||
auto_revert = true
|
||||
}
|
||||
|
||||
task "api-server" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "api-server:1.3"
|
||||
}
|
||||
|
@ -299,9 +299,6 @@ job "docs" {
|
|||
group "api" {
|
||||
count = 5
|
||||
|
||||
task "api-server" {
|
||||
driver = "docker"
|
||||
|
||||
update {
|
||||
max_parallel = 1
|
||||
canary = 1
|
||||
|
@ -310,6 +307,9 @@ job "docs" {
|
|||
auto_revert = true
|
||||
}
|
||||
|
||||
task "api-server" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "api-server:1.3"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue