Change task definition based on meta


In Kubernetes we can create operator and based on pod metadata (for example ingress=yes) inject some data to pod.

Is it possible to implement something simular in Nomad? For example, if I have:

  meta {
    ingress= "yes"

I wanted to add ingress to job in runtime:

   group "service-ingress" {
      network {
        mode = "bridge"
        port "http" {
          to     = 8080

Is it possible?

Hi @nikita-b1,

Unfortunately Nomad does not have a built-in operator concept or configurable admission mutators. Nomad community members have sometimes discussed this and there is the mxab/nacp open-source community project which attempts to provide a solution.

jrasell and the Nomad team