Jerome Gravel-Niquet
25e38c8257
Consul service meta ( #6193 )
...
* adds meta object to service in job spec, sends it to consul
* adds tests for service meta
* fix tests
* adds docs
* better hashing for service meta, use helper for copying meta when registering service
* tried to be DRY, but looks like it would be more work to use the
helper function
2019-08-23 12:49:02 -04:00
Tim Gross
c4a45a6bbc
add optional task field to group service checks
2019-08-20 09:35:31 -04:00
Nick Ethier
6fee34f591
sidecar_task override in connect admission controller ( #6140 )
...
* structs: use seperate SidecarTask struct for sidecar_task stanza and add merge
* nomad: merge SidecarTask into proxy task during connect Mutate hook
2019-08-20 01:22:46 -04:00
Danielle Lancashire
c486143ced
Copy documentation to api/tasks
2019-08-12 16:22:27 +02:00
Danielle Lancashire
ad72d166ee
jobspec: Add Volume and VolumeMount declarations
2019-08-12 15:39:07 +02:00
Nick Ethier
07ce33a747
Add sidecar_task stanza parsing ( #6104 )
...
* jobspec: breakup parse.go into smaller files
* add sidecar_task parsing to jobspec and api
* jobspec: combine service parsing logic for task and group service stanzas
* api: use slice of ConsulUpstream values instead of pointers
2019-08-09 15:18:53 -04:00
Preetha Appan
57009442b1
Add field "kind" to task for use in connect tasks
2019-08-07 18:43:36 -05:00
Michael Schurter
75e5e033fd
consul: add Connect structs
...
Refactor all Consul structs into {api,structs}/services.go because
api/tasks.go didn't make sense anymore and structs/structs.go is
gigantic.
2019-08-06 08:15:07 -07:00
Nick Ethier
b60bc8c17d
Add network stanza to group
...
Adds a network stanza and additional options to the task group level
in prep for allowing shared networking between tasks of an alloc.
2019-07-31 01:03:12 -04:00
Lang Martin
9621c073fe
add update AutoPromote bool
2019-05-22 12:32:08 -04:00
Alex Dadgar
bc42873e07
Change types of weights on spread/affinity
2019-01-30 12:20:38 -08:00
Alex Dadgar
8264f50c52
convert driver to device for device constraint/attributes
2019-01-23 10:58:45 -08:00
Preetha Appan
7cdaf6e37d
Make spread weight a pointer with default value if unset
2019-01-11 10:31:21 -06:00
Alex Dadgar
0953d913ed
Deprecate IOPS
...
IOPS have been modelled as a resource since Nomad 0.1 but has never
actually been detected and there is no plan in the short term to add
detection. This is because IOPS is a bit simplistic of a unit to define
the performance requirements from the underlying storage system. In its
current state it adds unnecessary confusion and can be removed without
impacting any users. This PR leaves IOPS defined at the jobspec parsing
level and in the api/ resources since these are the two public uses of
the field. These should be considered deprecated and only exist to allow
users to stop using them during the Nomad 0.9.x release. In the future,
there should be no expectation that the field will exist.
2018-12-06 15:09:26 -08:00
Alex Dadgar
e9ddf2c533
parse affinities and constraints on devices
2018-10-11 14:05:19 -07:00
Alex Dadgar
e47ddbdd9f
parse devices
2018-10-08 16:09:41 -07:00
Preetha Appan
0e2fefad36
Parse test for spread
2018-09-04 16:10:11 -05:00
Preetha Appan
25ad4643c3
Treat set_contains as a synonym of set_contains_all
2018-09-04 16:10:11 -05:00
Preetha Appan
218ce28554
Refactor method to return affinity struct, and add extra test at task level
2018-09-04 16:10:11 -05:00
Preetha Appan
8f2d5742c4
Affinity parsing, api and structs
2018-09-04 16:10:11 -05:00
Alex Dadgar
20df5aea5b
Canary tags structs
2018-05-07 14:50:01 -05:00
Alex Dadgar
15c3abf816
Initial implementation
2018-05-07 14:50:01 -05:00
Michael Schurter
905bef8f2d
consul: make grpc checks more like http checks
2018-05-04 11:08:11 -07:00
Michael Schurter
93356e7d70
consul: initial grpc implementation
...
Needs to be more like http.
2018-05-04 11:08:11 -07:00
Preetha Appan
e2226ca2b7
s/linear/constant/g
2018-03-26 14:45:09 -05:00
Alex Dadgar
7f989499ff
Correct defaulting
2018-03-21 16:51:44 -07:00
Michael Schurter
95b3b6eb02
drain: initial drainv2 structs and impl
2018-03-21 16:49:48 -07:00
Preetha Appan
d4056c4489
Rename DelayCeiling to MaxDelay
2018-03-14 16:10:32 -05:00
Preetha Appan
733c40e058
Add parsing test cases
2018-03-14 16:10:32 -05:00
Preetha Appan
eab9d2da92
Add reschedule policy to API, and HCL parsing support.
2018-01-31 09:56:53 -06:00
Michael Schurter
304a037e39
Fix service.check_restart stanza propagation
...
There was a bug in jobspec parsing, a bug in CheckRestart merging, and a
bug in CheckRestart canonicalization. All are now tested.
2018-01-09 15:15:36 -08:00
Michael Schurter
25569282b9
Allow custom ports for services and checks
...
Fixes #3380
Adds address_mode to checks (but no auto) and allows services and checks
to set literal port numbers when using address_mode=driver.
This allows SDNs, overlays, etc to advertise internal and host addresses
as well as do checks against either.
2017-12-08 12:03:00 -08:00
Chelsea Holland Komlo
20d1a3b54d
fix up test fixture to properly parse
2017-12-06 16:23:55 -05:00
Chelsea Holland Komlo
359613e115
fix up basic test
...
add conversion for KillSignal for api/struct representation of task
2017-12-06 14:36:45 -05:00
Chelsea Holland Komlo
9e49836d4f
move kill_signal to task level, extend to docker
2017-12-06 14:36:39 -05:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Michael Schurter
5141c957f7
Add check_restart to jobspec tests
2017-09-14 16:48:39 -07:00
Alex Dadgar
ac1539d5d9
Sync namespace changes
2017-09-07 17:04:21 -07:00
Michael Schurter
42041e5666
Test check header error conditions
2017-08-17 16:49:14 -07:00
Michael Schurter
45a8617442
Add jobspec test for check method/header
2017-08-17 16:44:21 -07:00
Michael Schurter
beae45bad5
Add optional shutdown delay to tasks
...
Fixes #2441
Defaults to 0 (no delay) for backward compat and because this feature
should be opt-in.
2017-08-16 17:59:46 -07:00
Alex Dadgar
053cff812a
Allow template to set Vault grace
...
This PR allows a template to specify the Vault grace duration.
Fixes https://github.com/hashicorp/nomad/issues/2922
2017-08-01 14:14:08 -07:00
Alex Dadgar
beb01f1754
test fixes
2017-07-07 14:11:27 -07:00
Michael Schurter
450e347708
Add support for go-getter modes
...
Fixes #2678
2017-07-06 10:45:44 -07:00
Michael Schurter
de4b008579
Test env parsing
2017-05-26 15:31:40 -07:00
Alex Dadgar
d606e98a6e
New update block; still need to handle the upgrade path
2017-05-08 17:44:26 -07:00
Alex Dadgar
86b0304fc2
Unoptimized implementation + testing
2017-03-07 14:48:54 -08:00
Alex Dadgar
8eb9a5d819
Make validate work without a Nomad agent
2017-03-03 15:02:03 -08:00
Alex Dadgar
8b1359c2d0
Fix canonicalization of services
2017-03-01 15:30:01 -08:00
Alex Dadgar
07f7e19578
Fix vet script and fix vet problems
...
This PR fixes our vet script and fixes all the missed vet changes.
It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00