Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

[Nomad] nomad-jobspec not work with node_pool #4903

Open
dominhhai opened this issue Sep 15, 2023 · 0 comments
Open

[Nomad] nomad-jobspec not work with node_pool #4903

dominhhai opened this issue Sep 15, 2023 · 0 comments
Labels

Comments

@dominhhai
Copy link

Describe the bug
The generated JobSpecs do not include the node_pool because of old nomad' api version which ref from Waypoint builtin.

Steps to Reproduce
Write node_pool to app.nomad.tpl

job "web" {
  datacenters = ["dc1"]
  node_pool   = "dev"
  group "app" {
    update {
      max_parallel = 1
      canary       = 1
      auto_revert  = true
      auto_promote = false
      health_check = "task_states"
    }

    task "app" {
      driver = "docker"
      config {
        image = "${artifact.image}:${artifact.tag}"
      }

      env {
        // For URL service
        PORT = "3000"
      }
    }
  }
}

Then, the generated JobSpecs as

{
   ### before
   "NodePool": "default",
   ### after
}

Expected behavior
The node_pool in the job template will be included in the generated JobSpecs.

Waypoint Platform Versions

  • Waypoint CLI Version: v0.11.4 (7128fba)
  • Waypoint Server Platform and Version: nomad v0.11.4
  • Waypoint Plugin: nomad jobspec
  • Nomad Version: v1.6.1
@dominhhai dominhhai added the new label Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant