News for hackers. Stuff that matters.
Re:Harbormaster: Anti-Kubernetes for your personal server by heipei on Thursday August 19, 2021 @07:43AM (#28232642)
What I like about Nomad is that it allows scheduling non-containerized workloads too. What it "does" for me is that it gives me a declarative language to specify the workloads, has a nice web UI to keep track of the workloads and allows such handy features as looking at the logs or exec'ing into the container from the web UI, amongst other things. Haven't used advanced networking or volumes yet though.
Re:Harbormaster: Anti-Kubernetes for your personal server by stavros on Thursday August 19, 2021 @07:47AM (#28232670)
So do you use it just for scheduling commands to run? I.e. do you use `docker-compose up` as the "payload"?
Re:Harbormaster: Anti-Kubernetes for your personal server by kawsper on Thursday August 19, 2021 @08:30AM (#28232966)
You send a job-specification to the Nomad API.

There's different kind of workloads, I use Docker containers the most, but jobs can also run on a system-level, there's also different types of operating modes, some jobs can be scheduled like cron, where other jobs just exposes a port and wants to be registered in Consuls service-mesh.

A job can also consist of multiple subtasks, an example could be nginx + django/rails subtasks that will be deployed together.

You can see an example of a Docker job here: https://www.nomadproject.io/docs/job-specification#example

With a few modifications you can easily allow for blue/green-deployments.

Re:Harbormaster: Anti-Kubernetes for your personal server by stavros on Thursday August 19, 2021 @08:32AM (#28232983)
This is very interesting, thanks! I'll give it a go.