nomad-mirage-plugin/example/example.nomad

36 lines
623 B
Plaintext
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "example" {
datacenters = ["dc1"]
2023-06-30 17:08:08 +00:00
type = "service"
group "example" {
2023-06-30 17:08:08 +00:00
network {
# mode = "driver"
port "http" {
to = 8080
}
}
task "hello-world" {
driver = "hello-world-example"
config {
2023-06-30 17:08:08 +00:00
unikernel = "/tmp/hello-key.hvt"
# network "device1" {
# ports = ["http", ...]
# ip_arg = "--monitoring"
# gateway_arg = "--xxx"
# }
# args = [...]
}
}
2023-06-30 17:08:08 +00:00
service {
port = "http"
name = "hello-service"
}
}
}