hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.98k stars 1.96k forks source link

dynamic host volumes: monitor readiness from CLI #24528

Closed tgross closed 3 days ago

tgross commented 4 days ago

When creating a dynamic host volumes, set up an optional monitor that waits for the node to fingerprint the volume as healthy.

Ref: https://github.com/hashicorp/nomad/pull/24479


Example of use:

$ nomad volume create ./demo/hostvolume/host.volume.hcl
==> Created host volume test with ID 5d680e11-914b-baba-6567-debf2a763ef8
  ⠙ Monitoring volume "5d680e11" in progress...
    2024-11-21T12:15:53-05:00
    ID        = 5d680e11-914b-baba-6567-debf2a763ef8
    Name      = test
    Namespace = default
    Plugin ID = example-host-volume
    Node ID   = 3e4cb984-1903-d68a-59c8-6e3855b59642
    Node Pool = default
    Capacity  = 47 MiB
    State     = pending
    Host Path = /run/nomad/dev/alloc_mounts/5d680e11-914b-baba-6567-debf2a763ef8