This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 20 Nov, 2020 2 commits
-
-
Tim Gross authored
-
Tim Gross authored
Create a new "Operating Nomad" section of the docs where we can put reference material for operators that doesn't quite fit in either configuration file / command line documentation or a step-by-step Learn Guide. Pre-populate this with the existing telemetry docs and some links out to the Learn Guide sections.
-
- 19 Nov, 2020 8 commits
-
-
Tim Gross authored
-
Tim Gross authored
* vault secrets named with `-` characters cannot be read by `consul-template` due to limitations in golang's template rendering engine. * environment variables are not modified in running tasks if `change_mode.noop` is set.
-
Tim Gross authored
-
Tim Gross authored
The `nomad alloc logs` command does not remove terminal escape sequences for color from the log outputs of a task. Clarify that the standard `-no-color` flag, which does apply to Nomad's error responses from `nomad alloc logs`, does not apply to the log output.
-
Tim Gross authored
-
Tim Gross authored
Adds an example of using HTTP Basic Auth, git options, and using HCL2 syntax to encode an SSH key from file.
-
Tim Gross authored
-
- 18 Nov, 2020 9 commits
-
-
Michael Schurter authored
client: fix interpolation in template source
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
docs: document artifact bug #6929
-
Tim Gross authored
The CSIVolume struct "denormalizes" allocations when it's first queried from the state store. The CSIVolumeByID method on the state store copies the volume before denormalizing so that we don't end up with unexpected changes. The copying has some subtle bugs that meant that Allocations (as well as Topologies and MountOptions) were not getting copied when expected. Also, ensure we never write allocations attached to volumes to the state store during claims.
-
Chris Baker authored
document `api.Allocation.Job` field
-
Chris Baker authored
-
Michael Schurter authored
While Nomad v0.12.8 fixed `NOMAD_{ALLOC,TASK,SECRETS}_DIR` use in `template.destination`, interpolating these variables in `template.source` caused a path escape error. **Why not apply the destination fix to source?** The destination fix forces destination to always be relative to the task directory. This makes sense for the destination as a destination outside the task directory would be unreachable by the task. There's no reason to ever render a template outside the task directory. (Using `..` does allow destinations to escape the task directory if `template.disable_file_sandbox = true`. That's just awkward and unsafe enough I hope no one uses it.) There is a reason to source a template outside a task directory. At least if there weren't then I can't think of why we implemented `template.disable_file_sandbox`. So v0.12.8 left the behavior of `template.source` the more straightforward "Interpolate and validate." However, since outside of `raw_exec` every other driver uses absolute paths for `NOMAD_*_DIR` interpolation, this means those variables are unusable unless `disable_file_sandbox` is set. **The Fix** The variables are now interpolated as relative paths *only for the purpose of rendering templates.* This is an unfortunate special case, but reflects the fact that the templates view of the filesystem is completely different (unconstrainted) vs the task's view (chrooted). Arguably the values of these variables *should be context-specific.* I think it's more reasonable to think of the "hack" as templating running uncontainerized than that giving templates different paths is a hack. **TODO** - [ ] E2E tests - [ ] Job validation may still be broken and prevent my fix from working? **raw_exec** `raw_exec` is actually broken _a different way_ as exercised by tests in this commit. I think we should probably remove these tests and fix that in a followup PR/release, but I wanted to leave them in for the initial review and discussion. Since non-containerized source paths are broken anyway, perhaps there's another solution to this entire problem I'm overlooking?
-
Michael Schurter authored
-
- 17 Nov, 2020 3 commits
-
-
Kris Hicks authored
This is mostly switching paragraphs to bullets to make following instructions easier. In doing so, this also adds instructions to install things that were previously assumed to be installed, like Vagrant, Virtualbox, and Consul. It also removes the expectation that Nomad is cloned to $GOPATH, as that is not necessary.
-
Nick Ethier authored
cni: use correct interface for netStatus
-
Kris Hicks authored
This replaces all usage of `protoc` with `buf`. See `tools/buf/README.md` for more.
-
- 16 Nov, 2020 8 commits
-
-
Chris Baker authored
fix duplication of ports in `AllocatedResources`
-
Chris Baker authored
-
Tim Gross authored
-
Seth Hoenig authored
scheduler: enable upgrade path for bridge network finger print
-
James Rasell authored
docs: move Ruby SDK to unsupported listing.
-
Tim Gross authored
The `nomad alloc status -verbose` command returns a 404 from CSI volumes because the volume mount block in the task points back to the `job.group.volume` block. So using the `Name` field to query is the "name" as seen in the jobspec, and not the name of the volume that we need for querying. Show both the job-specific name and the volume ID in the resulting output, which clarifies the difference between the two fields and is more consistent with the web UI.
-
James Rasell authored
Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com>
-
James Rasell authored
-
- 15 Nov, 2020 4 commits
-
-
Chris Baker authored
updated alloc_endpoint to mutate a copy of the returned allocation, instead of the instance in the state store
-
Chris Baker authored
-
Chris Baker authored
website: update downloads page to beta3
-
Chris Baker authored
-
- 14 Nov, 2020 1 commit
-
-
Wim authored
CNI plugins can return multiple interfaces, eg the bridge plugin. We need the interface with the sandbox.
-
- 13 Nov, 2020 5 commits
-
-
Tim Gross authored
-
Seth Hoenig authored
This PR enables users of Nomad < 0.12 to upgrade to Nomad 0.12 and beyond. Nomad 0.12 introduced a network fingerprinter for bridge networks, which is a contstraint checked for if bridge network is being used. If users upgrade servers first as is recommended, suddenly no clients running older versions of Nomad will satisfy the bridge network resource constraint. Instead, this change only enforces the constraint if the Nomad client version is also >= 0.12. Closes #8423
-
Seth Hoenig authored
jobspec: add support for headers in artifact stanza
-
Tim Gross authored
-
Seth Hoenig authored
This PR adds the ability to set HTTP headers when downloading an artifact from an `http` or `https` resource. The implementation in `go-getter` is such that a new `HTTPGetter` must be created for each artifact that sets headers (as opposed to conveniently setting headers per-request). This PR maintains the memoization of the default Getter objects, creating new ones only for artifacts where headers are set. Closes #9306
-