Created
December 14, 2022 20:58
-
-
Save juanluisbaptiste/cbddffedf5e24cd99f5969f5ca723fa8 to your computer and use it in GitHub Desktop.
Example of a static binary Nomad job
This file contains hidden or 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
job "ping_test" { | |
datacenters = ["dc1"] | |
group "ping_test" { | |
task "ping" { | |
driver = "raw_exec" | |
config { | |
# When running a binary that exists on the host, the path must be absolute/ | |
command = "/usr/bin/ping" | |
args = ["www.google.com", "-c 1000"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment