mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Implement a `nomad node pool init` command that generates an example spec file in either HCL or JSON format.
26 lines
812 B
HCL
26 lines
812 B
HCL
node_pool "example" {
|
|
|
|
description = "Example node pool"
|
|
|
|
# meta is optional metadata on the node pool, defined as key-value pairs.
|
|
# The scheduler does not use node pool metadata as part of scheduling.
|
|
meta {
|
|
environment = "prod"
|
|
owner = "sre"
|
|
}
|
|
|
|
# The scheduler configuration options specific to this node pool. This block
|
|
# supports a subset of the fields supported in the global scheduler
|
|
# configuration as described at:
|
|
# https://developer.hashicorp.com/nomad/docs/commands/operator/scheduler/set-config
|
|
#
|
|
# * scheduler_algorithm is the scheduling algorithm to use for the pool.
|
|
# If not defined, the global cluster scheduling algorithm is used.
|
|
#
|
|
# Available only in Nomad Enterprise.
|
|
|
|
# scheduler_configuration {
|
|
# scheduler_algorithm = "spread"
|
|
# }
|
|
}
|