2

I want to use Nomad in our project. But from the docs i could not get an answer, is there any proper way for assign a task to a specific node, ignoring scheduling. Is there such an opportunity? Sorry for bad english.

1 Answers1

1

Yes, you can use the constraint stanza:

The constraint allows restricting the set of eligible nodes. Constraints may filter on attributes or client metadata. Additionally constraints may be specified at the job, group, or task levels for ultimate flexibility.

  constraint {
    attribute = "${meta.my_custom_value}"
    operator  = ">"
    value     = "3"
  }
klhr
  • 3,300
  • 1
  • 11
  • 25