Nomad: execute command inside allocation / job

Created on 27 Nov 2017  Â·  6Comments  Â·  Source: hashicorp/nomad

Hello. Currently there is no method to run command (for example execute tests) on allocation in cluster. When i want to run tests inside container i need to find host where it is located, run ssh to connect, find container name and execute command. I think it will be easier to run something like:

nomad execute somejob/groupname/taskname "/bin/tests.sh"

or

nomad execute allocation/taskname "/bin/tests.sh"

to run tests. Also i think there should be some kind of option to specify if this task allow any executions( for example you might want to prevent external access for some tasks).

Also if there will be any interactive mode via API you will be able to implement online container access (something like javascript console).

themclient typenhancement

Most helpful comment

Hi, thanks for the feature request. We have this feature planned in Nomad's future roadmap.

All 6 comments

Hi, thanks for the feature request. We have this feature planned in Nomad's future roadmap.

Any updates on when this feature might be planned / implemented? This is one area in which Nomad lags behind Kubernetes....

While it won't be in 0.9.0, code is already being written and is already in a working state! So without promising a specific timeline, it's safe to say we hope to deliver this feature soon.

Thank you!

On Mon, Mar 25, 2019, 12:46 PM Michael Schurter notifications@github.com
wrote:

While it won't be in 0.9.0, code is already being written
https://github.com/hashicorp/nomad/commits/f-nomad-exec and is already
in a working state! So without promising a specific timeline, it's safe to
say we hope to deliver this feature soon.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/hashicorp/nomad/issues/3588#issuecomment-476283193,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHmVU59xZNDvQL9Tui76mYQZIxEuej6kks5vaP1PgaJpZM4QrSc-
.

is this implemented?

Yes! This was implemented as nomad alloc exec. Thanks for pointing out this issue was left open @adison88!

Was this page helpful?
0 / 5 - 0 ratings