-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a network stanza and additional options to the task group level in prep for allowing shared networking between tasks of an alloc.
- Loading branch information
1 parent
7e2f78a
commit 6697776
Showing
7 changed files
with
193 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
job "foo" { | ||
datacenters = ["dc1"] | ||
group "bar" { | ||
count = 3 | ||
network { | ||
mode = "bridge" | ||
port "http" { | ||
static = 80 | ||
to = 8080 | ||
} | ||
} | ||
task "bar" { | ||
driver = "raw_exec" | ||
config { | ||
command = "bash" | ||
args = ["-c", "echo hi"] | ||
} | ||
resources { | ||
network { | ||
mbits = 10 | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.