tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Integration with Nomad for managing Tilt workloads

Open thatsk opened this issue 3 years ago • 7 comments

hello team, its best tools for development. But do we have a roadmap to integrate with nomad which is hashicorp product? https://www.nomadproject.io/ We don't want complex k8s clusters we are simply running our container workload via nomad. and if we can integrate with nomad that would be awesome.

thatsk avatar Mar 08 '22 08:03 thatsk

We don't currently have any Nomad-specific plans, but you could look at using local_resource and a bit of scripting to see if it meets your needs.

For example:

local_resource(
  "my-nomad-job",
  cmd='docker build -t my-image ./job',
  deps=['./job', 'Dockerfile', 'deploy/job.nomad'],
  serve_cmd='nomad job run deploy/job.nomad && nomad alloc logs -f ...',
)

The serve_cmd I gave is an example from a quick look at the Nomad docs - in practice, more scripting is necessary here to e.g. get the allocation ID from the run to use in the log tail. An exec readiness probe that integrates with nomad eval status could also be useful here.

milas avatar Mar 09 '22 14:03 milas

what about traffic to route

thatsk avatar Apr 19 '22 07:04 thatsk

and incremental change

thatsk avatar Apr 19 '22 07:04 thatsk

are we going to look for supporting nomad ?

thatsk avatar Apr 19 '22 13:04 thatsk

Hi @thatsk - as of right now, I don't have anything to share from our roadmap regarding support for Nomad in Tilt.

milas avatar Apr 19 '22 17:04 milas

Any lights on this

thatsk avatar Aug 24 '22 03:08 thatsk

@milas just wanted to see any updates on this one

thatsk avatar Jun 08 '23 09:06 thatsk