Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
8568d4d5
Commit
8568d4d5
authored
7 years ago
by
Kate Taggart
Browse files
Options
Download
Email Patches
Plain Diff
update output when changing redis version
parent
c043348c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/source/intro/getting-started/jobs.html.md
+6
-6
website/source/intro/getting-started/jobs.html.md
with
6 additions
and
6 deletions
+6
-6
website/source/intro/getting-started/jobs.html.md
+
6
-
6
View file @
8568d4d5
...
...
@@ -180,7 +180,7 @@ For now, edit the `example.nomad` file to uncomment the count and set it to 3:
count = 3
```
Once you have finished modifying the job specification, use
[
`plan`
Once you have finished modifying the job specification, use
the
[
`plan`
command
](
/docs/commands/plan.html
)
to invoke a dry-run of the scheduler to see
what would happen if you ran the updated job:
...
...
@@ -234,12 +234,12 @@ run the same job specification again and no new allocations will be created.
Now, let's try to do an application update. In this case, we will simply change
the version of redis we want to run. Edit the
`example.nomad`
file and change
the Docker image from "redis:
latest
" to "redis:
2.8
":
the Docker image from "redis:
3.2
" to "redis:
4.0
":
```
# Configure Docker driver with the image
config {
image = "redis:
2.8
"
image = "redis:
4.0
"
}
```
...
...
@@ -248,12 +248,12 @@ We can run `plan` again to see what will happen if we submit this change:
```
$ nomad plan example.nomad
+/- Job: "example"
+/- Task Group: "cache" (
3
create/destroy update)
+/- Task Group: "cache" (
1
create/destroy update
, 2 ignore
)
+/- Task: "redis" (forces create/destroy update)
+/- Config {
+/- image: "redis:
latest
" => "redis:
2.8
"
+/- image: "redis:
3.2
" => "redis:
4.0
"
port_map[0][db]: "6379"
}
}
Scheduler dry-run:
- All tasks successfully allocated.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help