From 3eac2a0f8190d73ddd8586c813f3d984d02330e4 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Tue, 21 Jul 2020 11:39:01 -0400 Subject: [PATCH] format job init hcl --- command/assets/connect.nomad | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/command/assets/connect.nomad b/command/assets/connect.nomad index c7f6c6404eb..af14db96652 100644 --- a/command/assets/connect.nomad +++ b/command/assets/connect.nomad @@ -201,19 +201,17 @@ job "countdash" { # https://www.nomadproject.io/docs/job-specification/affinity.html # # affinity { - # attribute specifies the name of a node attribute or metadata - # attribute = "${node.datacenter}" - - - # value specifies the desired attribute value. In this example Nomad - # will prefer placement in the "us-west1" datacenter. - # value = "us-west1" - - - # weight can be used to indicate relative preference - # when the job has more than one affinity. It defaults to 50 if not set. - # weight = 100 - # } + # # attribute specifies the name of a node attribute or metadata + # attribute = "${node.datacenter}" + # + # # value specifies the desired attribute value. In this example Nomad + # # will prefer placement in the "us-west1" datacenter. + # value = "us-west1" + # + # # weight can be used to indicate relative preference + # # when the job has more than one affinity. It defaults to 50 if not set. + # weight = 100 + # } # The "spread" stanza allows operators to increase the failure tolerance of @@ -226,9 +224,9 @@ job "countdash" { # https://www.nomadproject.io/docs/job-specification/spread.html # # spread { - # attribute specifies the name of a node attribute or metadata - # attribute = "${node.datacenter}" - + # # attribute specifies the name of a node attribute or metadata + # attribute = "${node.datacenter}" + # } # targets can be used to define desired percentages of allocations # for each targeted attribute value.