Created
August 5, 2020 16:40
-
-
Save fideloper/d16246fbc2306b4f8ffbeb8fe7a91ff3 to your computer and use it in GitHub Desktop.
Nomad job spec for jippi/go-metadataproxy
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
# Nomad 0.12.0+ requires volumes to be enabled | |
# within the client configuration | |
plugin "docker" { | |
config { | |
volumes { | |
enabled = true | |
} | |
} | |
} |
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 "metadata-proxy" { | |
datacenters = ["dc1"] | |
type = "system" | |
group "metadata-proxy" { | |
task "metadata-proxy" { | |
driver = "docker" | |
config { | |
image = "jippi/go-metadataproxy:latest" | |
volumes = [ | |
"/var/run/docker.sock:/var/run/docker.sock" | |
] | |
network_mode = "host" | |
} | |
resources { | |
cpu = 64 # MHz | |
memory = 64 # MB | |
network { | |
mbits = 1 | |
} | |
} | |
env { | |
ENABLE_PROMETHEUS = "true" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This runs the meta data proxy in host mode. See the project readme for details on what this may mean for iptables routes and general use.