Commit Graph

3235 Commits

Author SHA1 Message Date
Seth Hoenig
53ab30870b env_aws: get ec2 cpu perf data from AWS API
Previously, Nomad was using a hand-made lookup table for looking
up EC2 CPU performance characteristics (core count + speed = ticks).

This data was incomplete and incorrect depending on region. The AWS
API has the correct data but requires API keys to use (i.e. should not
be queried directly from Nomad).

This change introduces a lookup table generated by a small command line
tool in Nomad's tools module which uses the Amazon AWS API.

Running the tool requires AWS_* environment variables set.
  $ # in nomad/tools/cpuinfo
  $ go run .

Going forward, Nomad can incorporate regeneration of the lookup table
somewhere in the CI pipeline so that we remain up-to-date on the latest
offerings from EC2.

Fixes #7830
2020-10-08 12:01:09 -05:00
Tim Gross
9d1efd5c4b docs: CSI mount_options are available only for filesystem vols (#9043)
The CSI specification allows only the `file-system` attachment mode to have
mount options. The `block-device` mode is left "intentionally empty, for now"
in the protocol. We should be validating against this problem, but our
documentation also had it backwards.

Also adds missing mount_options on group volume.
2020-10-08 08:49:43 -04:00
Ryan Oaks
c1b3e141a5 Update docs site to deploy to Vercel instead of Netlify 2020-10-07 13:49:05 -04:00
Chris Baker
b0c2e5176a updated docs and validation to further prohibit null chars in region, datacenter, and job name 2020-10-05 18:01:50 +00:00
Chris Baker
39c73f1b32 updated job validate to refute job/group/task IDs containing null characters
updated CHANGELOG and upgrade guide
2020-10-05 18:01:49 +00:00
Seth Hoenig
fc10e8fbbd Merge pull request #9008 from luhhujbb/doc-portmap
[doc] fix deprecated port_map example
2020-10-05 12:25:53 -05:00
Ryan Oaks
97d03887c7 Merge pull request #8991 from hashicorp/ro.docs-formatting
docs: Format docs website code and mdx
2020-10-05 10:31:40 -04:00
Kent 'picat' Gruber
ea397cb042 Merge pull request #8998 from hashicorp/keygen-32-bytes
Use 32-byte key for gossip encryption to enable AES-256
2020-10-02 17:17:55 -04:00
Tim Gross
38d2a80e2f docs: add Consul policy for Consul Namespace support (#9014)
Co-authored-by: Seth Hoenig <shoenig@hashicorp.com>
2020-10-02 15:13:33 -04:00
Charlie Voiselle
4a7502847d Update docker.mdx (#8913) 2020-10-02 14:54:14 -04:00
Fredrik Hoem Grelland
eb7cc6425d configure nomad cluster to use a Consul Namespace [Consul Enterprise] (#8849) 2020-10-02 14:46:36 -04:00
Ryan Oaks
0e0f23210e Format docs website code and mdx 2020-10-02 13:31:40 -04:00
Seth Hoenig
a299b76c5a docs: document docker signal fix, add tests
This PR adds a version specific upgrade note about the docker stop
signal behavior. Also adds test for the signal logic in docker driver.

Closes #8932 which was fixed in #8933
2020-10-02 10:06:43 -05:00
Jean-Baptiste Besselat
d29a3ff58e [doc] fix deprecated port_map example 2020-10-02 14:39:48 +02:00
Fredrik Hoem Grelland
8238b9f864 update consul-template to v0.25.1 (#8988) 2020-10-01 14:08:49 -04:00
José Maia
c8bc8517e8 Fix docs on API for volume detaching (#9002)
`nomad volume detach volume-id 00000000-0000-0000-0000-000000000000` produces an API call containing the UUID as part of the query string. This is the only way the API accepts the request correctly - if you pass it in the payload you get `detach requires node ID`
2020-10-01 11:01:13 -04:00
Kent 'picat' Gruber
e461ba01a9 Update nomad operator keygen example command in docs 2020-09-30 17:07:31 -04:00
Kent 'picat' Gruber
37155dc881 Update server configuration docs to use 32 bytes 2020-09-30 17:03:12 -04:00
Tim Gross
cf8dbb4ca3 docs: quota apply does not have a 'name' param (#8983) 2020-09-29 13:58:30 -04:00
Charlie Voiselle
fee792d2ad [docs] Update redirects and links for learn.hashicorp.com (#8598)
* Fix links to ACL guides
* Managing Nomad guide links; links in jsx pages
* job updates guide URLS
* node-drain guide URLS
* outage recovery guide links
* fix guide links - sentinel
* fix guide links - namespaces
* fix guide links - quotas
* fix guide links - autopilot
* more guide links.
* more guide links - continued.
* Updating redirects for learn
* Getting Started
* Load Balancing Guides
* update redirects for ui guide
* Consolidate spark redirects to point to GH repo
* operating job update part 1
* finish operating job links; operations guides links.
* finish guide redirects
* coalesce EOL redirects for spark guides.
* one last link
* Checked links and found a few more stray links
* Found more .htmls
* Fixup links for new HC websites
* Post-merge fixups
* linkcheck caught missing ids
2020-09-29 12:48:32 -04:00
Seth Hoenig
23604e0d3d consul: fix validation of task in group-level script-checks
When defining a script-check in a group-level service, Nomad needs to
know which task is associated with the check so that it can use the
correct task driver to execute the check.

This PR fixes two bugs:
1) validate service.task or service.check.task is configured
2) make service.check.task inherit service.task if it is itself unset

Fixes #8952
2020-09-28 15:02:59 -05:00
Seth Hoenig
188a604ce3 drivers/docker: detect arch for default infra_image
The 'docker.config.infra_image' would default to an amd64 container.
It is possible to reference the correct image for a platform using
the `runtime.GOARCH` variable, eliminating the need to explicitly set
the `infra_image` on non-amd64 platforms.

Also upgrade to Google's pause container version 3.1 from 3.0, which
includes some enhancements around process management.

Fixes #8926
2020-09-23 13:54:30 -05:00
Ryan Oaks
b5ac626b54 Merge pull request #8942 from hashicorp/ro.docs-component-update
docs: Update docs platform components
2020-09-22 16:21:35 -04:00
Tim Gross
9582787870 docs: fix escaping in job run env vars (#8944) 2020-09-22 14:32:29 -04:00
Ryan Oaks
1ef2666921 Update docs platform components 2020-09-22 12:08:57 -04:00
Kris Hicks
f3ae5682aa docs: fix typo 'thre' -> 'the' (#8937) 2020-09-21 11:52:45 -04:00
Mahmood Ali
ebb6a0b964 update release to 0.12.5 2020-09-17 20:41:04 -04:00
Luiz Aoqui
ea1204a3e4 Merge pull request #8811 from hashicorp/docs/fix-local-service-port
docs: fix type for `local_service_port`
2020-09-17 10:04:36 -04:00
Mahmood Ali
57bd79e4da Merge pull request #8789 from hashicorp/docs-fix-group-link
docs: Fix group link in job spec docs
2020-09-17 08:30:49 -05:00
Brad Phipps
7bcb12baaa docs: add missing double quote (#8806) 2020-09-17 09:16:30 -04:00
Mahmood Ali
040e76279f tweak the language about mbit scheduling factor 2020-09-17 08:35:38 -04:00
Mahmood Ali
c320e91407 Update website with network mbit deprecation 2020-09-16 11:06:35 -04:00
James Rasell
1b031b9ba7 Merge pull request #8890 from arthur-leclerc/docs-fix-nomad-autoscaling-telemetry-dd-example
docs: Fix Nomad autoscaler Datadog telemetry example
2020-09-16 10:55:45 +02:00
Charlie Voiselle
0e647ff68a Merge pull request #8869 from hashicorp/docs-move-ea-guides
Sunset older instances of EA Guides
2020-09-15 12:49:35 -04:00
Arthur Leclerc
dc3494c01f docs: Fix autoscaler datadog telemetry example 2020-09-15 14:02:58 +00:00
José Maia
57e07772bd Fix sample JSON payload when updating a Volume (#8880)
Fixes #8879
2020-09-14 09:24:26 -04:00
Tim Gross
d8d2b7ec97 docs: add chroot contents to Java driver docs (#8873) 2020-09-11 10:38:30 -04:00
Charlie Voiselle
d6f1e41736 Update copy on Production overview page 2020-09-10 21:12:43 -04:00
Charlie Voiselle
8730f4b12c Sunset local copy of Deployment Guide and Reference Architecture 2020-09-10 21:12:32 -04:00
Michael Schurter
b7724bcc3f docs: update website to 0.12.4 2020-09-09 15:22:22 -07:00
James Rasell
98e51e023c docs: format Autopilot config stanza example. 2020-09-09 15:37:39 +02:00
Kevin Pruett
c5a1649b01 Fix several search-related issues
* CSS on mobile
* Remove stale partial indices
* Fix broken hit links
* Leverage @hashicorp/react-search/tools
2020-09-08 11:02:57 -04:00
James Rasell
f187ad1ff6 docs: add Nomad Autoscaler Datadog APM plugin details. (#8755) 2020-09-08 09:40:45 +02:00
James Rasell
eba2edf376 Merge pull request #8837 from hashicorp/docs-autoscaler-gh-257
docs: update Autoscaler AWS target with new purge config option.
2020-09-08 09:15:27 +02:00
James Rasell
f284b0a153 docs: add Autoscaler telemetry documentation to website. (#8733)
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2020-09-08 09:13:53 +02:00
James Rasell
286b26561c docs: update Autoscaler AWS target with new purge config option. 2020-09-07 10:45:41 +02:00
Shishir
4ba3afa44b nomad-driver-containerd: Update networking section (#8762) 2020-09-03 10:31:58 -04:00
Michael Schurter
759dab4608 docs: add download link to 0.12.4-rc1 2020-09-02 21:25:56 -07:00
Luiz Aoqui
9d7d9d8b4d Merge pull request #8812 from hashicorp/docs/add-volume-mount-to-task
docs: add entry for volume_mount in task
2020-09-02 10:21:46 -04:00
James Rasell
6c45ef1f39 docs: fix incorrect aws-asg autoscaler target plugin policy params 2020-09-02 14:03:35 +02:00