Nomad job spec for jippi/go-metadataproxy
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
# Nomad 0.12.0+ requires volumes to be enabled | |
# within the client configuration | |
plugin "docker" { | |
config { | |
volumes { | |
enabled = true | |
} | |
} | |
} |
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
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.