Commit Graph

35 Commits

Author SHA1 Message Date
Michael Schurter
cc4830d284 docs: clarify service.port depends on address_mode
Hopefully helps prevent more issues like #3681 and #4008. The
port/address_mode logic is really subtle, and it took me a long time to
diagnose #4008 despite being the one to have addressed the duplicate
issue before! Not to mention I wrote the code! Definitely need to do
something to make it more understandable...
2018-03-27 14:58:08 -07:00
Preetha Appan
1a3b5b7e58 Nicer names 2018-02-12 12:19:16 -06:00
Preetha Appan
74c5ce6140 Add check names to multiple checks example 2018-02-12 11:31:06 -06:00
Preetha Appan
930c5737a3 Clarify that check names are auto generated. 2018-02-12 11:21:50 -06:00
Wim
cdd55e4591 Update documentation 2018-02-01 14:25:14 +01:00
Wim
dea460bb5a * Change use_ipv6_address to advertise_ipv6_address.
* Set autoadvertise to true.
* Update documentation.
2018-02-01 00:01:25 +01:00
Wim
795d84e08f Service registration for IPv6 docker addresses 2018-01-30 17:07:47 +01:00
Michael Schurter
94e6b9cff6 Make example service name make sense
Switch from global-redis-check for the example job's service name to
redis-cache. The former name is really confusing and someone finally
called us out on it:

https://groups.google.com/d/msg/nomad-tool/3RTh6CyYkWk/vEe_Sj7lAAAJ

Also specifically mention that the `service.name` parameter is what is
advertised in Consul.
2018-01-17 14:08:30 -08:00
Michael Schurter
a4449c84d7 Services should not require a port
Fixes #3673
2017-12-19 15:50:23 -08:00
Michael Schurter
41963605d0 Expand port and address_mode docs 2017-12-08 12:39:50 -08:00
Michael Schurter
f11360acf8 Add Using Driver Address Mode docs 2017-12-08 12:03:43 -08:00
Michael Schurter
f2d47156ec Document service/check address_mode/port changes 2017-12-08 12:03:43 -08:00
Preetha
24f96325b0 Rewording for clarity 2017-11-17 08:38:55 -06:00
Preetha Appan
436a5f77cb Move service validation explanation doc 2017-11-16 16:58:37 -06:00
Michael Schurter
a7a5d5f9d1 Cleanup versioning doc 2017-09-27 17:24:30 -07:00
Michael Schurter
900e708577 Properly autodetect Docker IP in Windows
Our Docker network plugin autodetection code was erroneously treating
Window's default network `nat` as a plugin and defaulting to it instead
of the host.

Fixes #3218
2017-09-27 16:49:23 -07:00
Michael Schurter
1564e1c4b3 Move check_restart to its own section. 2017-09-14 16:48:39 -07:00
Michael Schurter
7e103f69cb Document new check_restart stanza 2017-09-14 16:46:54 -07:00
Michael Schurter
a6bf5b6098 Document check header and method 2017-08-17 16:49:14 -07:00
Charlie Voiselle
77c6f32243 Spellcheck sweep of website directory
Caught some typos.  Made units separate from the numbers 1GHz -> 1 GHz
after talking to Nick about questions of style (this has the side effect of making future spell checking easier).
2017-07-17 14:41:50 -04:00
Alex Dadgar
78624cbd76 Merge pull request #2755 from hashicorp/sethvargo/docs-updates
Update docs notes
2017-07-06 10:02:38 -07:00
Seth Vargo
3e3b77bd55 Document context of service checks
Fixes GH-1935
2017-06-29 16:54:23 +08:00
Michael Schurter
ee5e02fa3c Document address_mode 2017-06-21 17:19:08 -07:00
Michael Schurter
a5dcf6bbd9 Document tls_skip_verify 2017-04-19 12:45:34 -07:00
Michael Schurter
10cb924b2c Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
Alex Dadgar
dcc3375076 Fix example 2016-11-16 14:44:55 -08:00
Seth Vargo
c86a07d834 Separate agent configuration into its own pages
I apologize in advance for the rather long PR, but unfortunately there
is not an easy way to break this up into smaller chunks. This separates
the agent configuration into smaller, more consumable pieces just like
the job specification.
2016-11-02 18:30:00 -04:00
Seth Vargo
a9ec7d6afa Fix example 2016-10-31 16:53:17 -04:00
Seth Vargo
ef9fba3f6a Capital HTTP 2016-10-31 16:53:16 -04:00
Seth Vargo
2fe7123bcb Wrap line 2016-10-31 16:53:16 -04:00
Seth Vargo
4f76aef438 Add port to service 2016-10-31 16:53:16 -04:00
Seth Vargo
bb93770720 To discus and discuss we will begin discussion 2016-10-31 16:53:15 -04:00
Seth Vargo
8445329fc5 Update service description 2016-10-31 16:53:15 -04:00
Seth Vargo
89a2db2520 Add service SEO description 2016-10-31 16:52:56 -04:00
Seth Vargo
f73a83defa Give service its own configuration 2016-10-31 16:52:54 -04:00