Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nomad job spec for jippi/go-metadataproxy
# Nomad 0.12.0+ requires volumes to be enabled
# within the client configuration
plugin "docker" {
config {
volumes {
enabled = true
}
}
}
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"
}
}
}
}
@fideloper
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment