mirror of https://github.com/hashicorp/consul
Backport of docs: Fix invalid JSON into release/1.16.x (#18960)
Backport of Fix invalid JSON into release/1.16.x
backport of commit cc40e084bb
pull/18973/head
parent
100fbed860
commit
54be594b57
|
@ -947,7 +947,7 @@ $ curl \
|
||||||
"Port": 8000,
|
"Port": 8000,
|
||||||
"Namespace": "default"
|
"Namespace": "default"
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -52,14 +52,18 @@ once you have their coordinates. Here's a sample coordinate, as returned from th
|
||||||
<CodeBlockConfig heading="Sample coordinate from Coordinate endpoint" hideClipboard>
|
<CodeBlockConfig heading="Sample coordinate from Coordinate endpoint" hideClipboard>
|
||||||
|
|
||||||
```json
|
```json
|
||||||
...
|
[
|
||||||
|
{
|
||||||
|
"Node": "agent-one",
|
||||||
|
"Segment": "",
|
||||||
"Coord": {
|
"Coord": {
|
||||||
"Adjustment": 0.1,
|
"Adjustment": 0.1,
|
||||||
"Error": 1.5,
|
"Error": 1.5,
|
||||||
"Height": 0.02,
|
"Height": 0.02,
|
||||||
"Vec": [0.34,0.68,0.003,0.01,0.05,0.1,0.34,0.06]
|
"Vec": [0.34,0.68,0.003,0.01,0.05,0.1,0.34,0.06]
|
||||||
}
|
}
|
||||||
...
|
}
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
|
|
|
@ -62,9 +62,10 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
"Name": "default",
|
"Kind": "exported-services",
|
||||||
"Services": [
|
"Name": "default",
|
||||||
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "<name of service to export>",
|
"Name": "<name of service to export>",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
|
@ -73,7 +74,8 @@ spec:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -113,20 +115,22 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
"Partition": "<partition containing services to export>",
|
"Kind": "exported-services",
|
||||||
"Name": "<partition containing services to export>",
|
"Partition": "<partition containing services to export>",
|
||||||
"Services": [
|
"Name": "<partition containing services to export>",
|
||||||
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "<name of service to export>",
|
"Name": "<name of service to export>",
|
||||||
"Namespace": "<namespace in the partition containing the service to export>"
|
"Namespace": "<namespace in the partition containing the service to export>",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Peer": "<name of the peered cluster that dials the exported service>"
|
"Peer": "<name of the peered cluster that dials the exported service>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -166,20 +170,22 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
"Partition": "<partition containing services to export>",
|
"Kind": "exported-services",
|
||||||
"Name": "<partition containing services to export>",
|
"Partition": "<partition containing services to export>",
|
||||||
"Services": [
|
"Name": "<partition containing services to export>",
|
||||||
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "<name of service to export>",
|
"Name": "<name of service to export>",
|
||||||
"Namespace": "<namespace in the partition containing the service to export>"
|
"Namespace": "<namespace in the partition containing the service to export>",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Partition": "<name of partition that dials the exported service>"
|
"Partition": "<name of partition that dials the exported service>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -220,20 +226,22 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
"Partition": "<partition containing services to export>",
|
"Kind": "exported-services",
|
||||||
"Name": "<partition containing services to export>",
|
"Partition": "<partition containing services to export>",
|
||||||
"Services": [
|
"Name": "<partition containing services to export>",
|
||||||
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "<name of service to export>",
|
"Name": "<name of service to export>",
|
||||||
"Namespace": "<namespace in the partition containing the service to export>"
|
"Namespace": "<namespace in the partition containing the service to export>",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"SamenessGroup": "<name of the sameness group that dials the exported service>"
|
"SamenessGroup": "<name of the sameness group that dials the exported service>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -326,7 +334,8 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Name": "default",
|
"Name": "default",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
|
@ -334,8 +343,8 @@ spec:
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Peer": "web-shop"
|
"Peer": "web-shop"
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "refunds",
|
"Name": "refunds",
|
||||||
|
@ -346,6 +355,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -402,18 +412,19 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Partition": "finance",
|
"Partition": "finance",
|
||||||
"Name": "finance",
|
"Name": "finance",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "payments",
|
"Name": "payments",
|
||||||
"Namespace": "billing"
|
"Namespace": "billing",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Peer": "web-shop"
|
"Peer": "web-shop"
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "refunds",
|
"Name": "refunds",
|
||||||
|
@ -425,6 +436,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -448,7 +460,7 @@ Services = [
|
||||||
Consumers = [
|
Consumers = [
|
||||||
{
|
{
|
||||||
Partition = "web-shop"
|
Partition = "web-shop"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -481,18 +493,19 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Partition": "finance",
|
"Partition": "finance",
|
||||||
"Name": "finance",
|
"Name": "finance",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "payments",
|
"Name": "payments",
|
||||||
"Namespace": "billing"
|
"Namespace": "billing",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Partition": "web-shop"
|
"Partition": "web-shop"
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "refunds",
|
"Name": "refunds",
|
||||||
|
@ -504,6 +517,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -545,7 +559,8 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Name": "default",
|
"Name": "default",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
|
@ -557,6 +572,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -603,12 +619,13 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Name": "default",
|
"Name": "default",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "*",
|
"Name": "*",
|
||||||
"Namespace": "*"
|
"Namespace": "*",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Peer": "monitoring"
|
"Peer": "monitoring"
|
||||||
|
@ -619,6 +636,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -666,13 +684,14 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Partition": "finance",
|
"Partition": "finance",
|
||||||
"Name": "finance",
|
"Name": "finance",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "*",
|
"Name": "*",
|
||||||
"Namespace": "*"
|
"Namespace": "*",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Peer": "monitoring"
|
"Peer": "monitoring"
|
||||||
|
@ -683,6 +702,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -730,13 +750,14 @@ spec:
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"Kind": "exported-services",
|
{
|
||||||
|
"Kind": "exported-services",
|
||||||
"Partition": "finance",
|
"Partition": "finance",
|
||||||
"Name": "finance",
|
"Name": "finance",
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "*",
|
"Name": "*",
|
||||||
"Namespace": "*"
|
"Namespace": "*",
|
||||||
"Consumers": [
|
"Consumers": [
|
||||||
{
|
{
|
||||||
"Partition": "monitoring"
|
"Partition": "monitoring"
|
||||||
|
@ -747,6 +768,7 @@ spec:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -813,7 +835,6 @@ node_prefix "" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -879,6 +900,7 @@ partition "frontend" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
## OR
|
## OR
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -353,9 +353,11 @@ spec:
|
||||||
"MaxPendingRequests" : 0,
|
"MaxPendingRequests" : 0,
|
||||||
"MaxConcurrentRequests": 0,
|
"MaxConcurrentRequests": 0,
|
||||||
"PassiveHealthCheck" : {
|
"PassiveHealthCheck" : {
|
||||||
"interval" : 10,
|
"interval": "<the time between checks>",
|
||||||
"max_failures" : 5,
|
"maxFailures": <number>,
|
||||||
"enforcing_consecutive_5xx" : 100
|
"enforcingConsecutive5xx": <number>,
|
||||||
|
"maxEjectionPercent": <number>,
|
||||||
|
"baseEjectionTime": "<the base time that a host is ejected for>"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Listeners" : [
|
"Listeners" : [
|
||||||
|
@ -402,9 +404,11 @@ spec:
|
||||||
"MaxPendingRequests" : <number>,
|
"MaxPendingRequests" : <number>,
|
||||||
"MaxConcurrentRequests" : <number>,
|
"MaxConcurrentRequests" : <number>,
|
||||||
"PassiveHealthCheck" : {
|
"PassiveHealthCheck" : {
|
||||||
"interval" : 10,
|
"interval": "<the time between checks>",
|
||||||
"max_failures" : 5,
|
"maxFailures": <number>,
|
||||||
"enforcing_consecutive_5xx" : 100
|
"enforcingConsecutive5xx":<number>,
|
||||||
|
"maxEjectionPercent": <number>,
|
||||||
|
"baseEjectionTime": "<the base time that a host is ejected for>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -187,7 +187,7 @@ spec:
|
||||||
"Services": [
|
"Services": [
|
||||||
{
|
{
|
||||||
"Name": "billing",
|
"Name": "billing",
|
||||||
"CAFile": "/etc/certs/ca-chain.cert.pem"
|
"CAFile": "/etc/certs/ca-chain.cert.pem",
|
||||||
"SNI": "billing.service.com"
|
"SNI": "billing.service.com"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -34,8 +34,10 @@ connect {
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"connect": {
|
{
|
||||||
|
"connect": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
|
|
@ -22,7 +22,7 @@ for the built-in proxy.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"service": {
|
"service": {
|
||||||
...
|
"name": "example-service",
|
||||||
"connect": {
|
"connect": {
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"config": {
|
"config": {
|
||||||
|
@ -31,11 +31,11 @@ for the built-in proxy.
|
||||||
"local_service_address": "127.0.0.1:1234",
|
"local_service_address": "127.0.0.1:1234",
|
||||||
"local_connect_timeout_ms": 1000,
|
"local_connect_timeout_ms": 1000,
|
||||||
"handshake_timeout_ms": 10000,
|
"handshake_timeout_ms": 10000,
|
||||||
"upstreams": [...]
|
"upstreams": []
|
||||||
},
|
},
|
||||||
"upstreams": [
|
"upstreams": [
|
||||||
{
|
{
|
||||||
...
|
"destination_name": "example-upstream",
|
||||||
"config": {
|
"config": {
|
||||||
"connect_timeout_ms": 1000
|
"connect_timeout_ms": 1000
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,10 +72,11 @@ EnvoyExtensions = [
|
||||||
<CodeBlockConfig filename="property-override-extension-service-defaults.json">
|
<CodeBlockConfig filename="property-override-extension-service-defaults.json">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"kind": "service-defaults",
|
{
|
||||||
"name": "api",
|
"kind": "service-defaults",
|
||||||
"protocol": "http",
|
"name": "api",
|
||||||
"envoyExtensions": [{
|
"protocol": "http",
|
||||||
|
"envoyExtensions": [{
|
||||||
"name": "builtin/property-override",
|
"name": "builtin/property-override",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"proxyType": "connect-proxy",
|
"proxyType": "connect-proxy",
|
||||||
|
@ -90,7 +91,8 @@ EnvoyExtensions = [
|
||||||
"value": true
|
"value": true
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
|
@ -221,6 +221,7 @@ Then, open `bootstrap.json` and update the following sections with your ACL toke
|
||||||
<CodeBlockConfig filename="bootstrap.json" hideClipboard lineNumbers highlight="2,19">
|
<CodeBlockConfig filename="bootstrap.json" hideClipboard lineNumbers highlight="2,19">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
{
|
||||||
"admin": {
|
"admin": {
|
||||||
"access_log_path": "/dev/null",
|
"access_log_path": "/dev/null",
|
||||||
"address": {
|
"address": {
|
||||||
|
|
|
@ -207,7 +207,7 @@ mesh_gateway = {
|
||||||
"mesh_gateway": {
|
"mesh_gateway": {
|
||||||
"mode": "local"
|
"mode": "local"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -229,7 +229,7 @@ config = {}
|
||||||
"local_bind_address": "127.0.0.1",
|
"local_bind_address": "127.0.0.1",
|
||||||
"local_bind_port": 1234,
|
"local_bind_port": 1234,
|
||||||
"config": {}
|
"config": {}
|
||||||
},
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -462,13 +462,15 @@ upstreams = [
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"upstreams": [
|
{
|
||||||
|
"upstreams": [
|
||||||
{
|
{
|
||||||
"destination_name": "service-1",
|
"destination_name": "service-1",
|
||||||
"local_bind_socket_path": "/tmp/socket_service_1",
|
"local_bind_socket_path": "/tmp/socket_service_1",
|
||||||
"local_bind_socket_mode": "0700"
|
"local_bind_socket_mode": "0700"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
@ -499,9 +501,11 @@ services {
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"services": {
|
{
|
||||||
|
"services": {
|
||||||
"name": "service-2",
|
"name": "service-2",
|
||||||
"socket_path": "/tmp/socket_service_2"
|
"socket_path": "/tmp/socket_service_2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -519,7 +523,6 @@ services {
|
||||||
proxy {
|
proxy {
|
||||||
name = "service-2"
|
name = "service-2"
|
||||||
local_service_socket_path = "/tmp/socket_service_2"
|
local_service_socket_path = "/tmp/socket_service_2"
|
||||||
...
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -527,17 +530,20 @@ services {
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"services": {
|
{
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
"name": "socket_service_2",
|
"name": "socket_service_2",
|
||||||
"connect": {
|
"connect": {
|
||||||
"sidecar_service": {
|
"sidecar_service": {
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"name": "service-2",
|
"name": "service-2",
|
||||||
"local_service_socket_path": "/tmp/socket_service_2"
|
"local_service_socket_path": "/tmp/socket_service_2"
|
||||||
...
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -682,8 +682,7 @@ An example of the output of this command:
|
||||||
"TagFilter": "",
|
"TagFilter": "",
|
||||||
"Version": 1,
|
"Version": 1,
|
||||||
"LTime": 18
|
"LTime": 18
|
||||||
},
|
}
|
||||||
...
|
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ during task startup.
|
||||||
"name": "consul_binary"
|
"name": "consul_binary"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"containerDefinitions": [...]
|
"containerDefinitions": [...],
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
{
|
||||||
"key": "consul.hashicorp.com/mesh",
|
"key": "consul.hashicorp.com/mesh",
|
||||||
|
|
|
@ -111,7 +111,7 @@ The registrator also requires the following IAM permissions to access the parame
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": ["ssm:PutParameter","ssm:DeleteParameter"],
|
"Action": ["ssm:PutParameter","ssm:DeleteParameter"],
|
||||||
"Resource": "arn:aws:ssm:us-east-2:123456789012:parameter/${var.consul_extension_data_prefix}/*"
|
"Resource": "arn:aws:ssm:us-east-2:123456789012:parameter/${var.consul_extension_data_prefix}/*"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -182,7 +182,7 @@ Response:
|
||||||
"null"
|
"null"
|
||||||
],
|
],
|
||||||
"services": [
|
"services": [
|
||||||
"web",
|
"web"
|
||||||
],
|
],
|
||||||
"events_url": "/v1/status/tasks/task_b?include=events",
|
"events_url": "/v1/status/tasks/task_b?include=events",
|
||||||
"events": [
|
"events": [
|
||||||
|
@ -217,7 +217,7 @@ Response:
|
||||||
"null"
|
"null"
|
||||||
],
|
],
|
||||||
"services": [
|
"services": [
|
||||||
"web",
|
"web"
|
||||||
],
|
],
|
||||||
"module": "../modules/test_task"
|
"module": "../modules/test_task"
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ acl = {
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"bootstrap_expect": N,
|
"bootstrap_expect": 3,
|
||||||
"primary_datacenter": "PRIMARY_DATACENTER_VALUE",
|
"primary_datacenter": "PRIMARY_DATACENTER_VALUE",
|
||||||
"acl": {
|
"acl": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
|
@ -554,7 +554,7 @@ node "admin" {
|
||||||
"node_prefix": {
|
"node_prefix": {
|
||||||
"": {
|
"": {
|
||||||
"policy": "read"
|
"policy": "read"
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"node": {
|
"node": {
|
||||||
"app": {
|
"app": {
|
||||||
|
|
|
@ -35,29 +35,27 @@ Specify the value of the `SecretID` attribute with the `token` parameter when co
|
||||||
|
|
||||||
<CodeTabs>
|
<CodeTabs>
|
||||||
|
|
||||||
<CodeBlockConfig lineNumbers highlight="6">
|
<CodeBlockConfig lineNumbers highlight="5">
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
service = {
|
service = {
|
||||||
id = "redis"
|
id = "redis"
|
||||||
name = "redis"
|
name = "redis"
|
||||||
...
|
|
||||||
namespace = "foo"
|
namespace = "foo"
|
||||||
token = "233b604b-b92e-48c8-a253-5f11514e4b50"
|
token = "233b604b-b92e-48c8-a253-5f11514e4b50"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
<CodeBlockConfig lineNumbers highlight="6">
|
<CodeBlockConfig lineNumbers highlight="5">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"service": {
|
"service": {
|
||||||
"id": "redis",
|
"id": "redis",
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
...
|
"namespace": "foo",
|
||||||
"token": "233b604b-b92e-48c8-a253-5f11514e4b50",
|
"token": "233b604b-b92e-48c8-a253-5f11514e4b50"
|
||||||
"namespace": "foo"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -100,8 +100,10 @@ meta = {
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"meta" : {
|
{
|
||||||
|
"meta" : {
|
||||||
"env" : "prod"
|
"env" : "prod"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -362,25 +364,29 @@ In the following example, service instances in a `passing` state respond to DNS
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
service {
|
service {
|
||||||
## ...
|
name = "redis"
|
||||||
|
address = "192.0.2.10"
|
||||||
|
port = 6379
|
||||||
weights = {
|
weights = {
|
||||||
passing = 3
|
passing = 3
|
||||||
warning = 2
|
warning = 2
|
||||||
critical = 1
|
critical = 1
|
||||||
}
|
}
|
||||||
## ...
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"service": {
|
{
|
||||||
## ...
|
"service": {
|
||||||
|
"name": "redis",
|
||||||
|
"address": "192.0.2.10",
|
||||||
|
"port": 6379,
|
||||||
"weights": {
|
"weights": {
|
||||||
"passing": 3,
|
"passing": 3,
|
||||||
"warning": 2,
|
"warning": 2,
|
||||||
"critical": 1
|
"critical": 1
|
||||||
},
|
}
|
||||||
## ...
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -585,7 +591,7 @@ service {
|
||||||
"tagged_addresses": {
|
"tagged_addresses": {
|
||||||
"lan": {
|
"lan": {
|
||||||
"address": "192.168.0.55",
|
"address": "192.168.0.55",
|
||||||
"port": 8000,
|
"port": 8000
|
||||||
},
|
},
|
||||||
"wan": {
|
"wan": {
|
||||||
"address": "198.18.0.23",
|
"address": "198.18.0.23",
|
||||||
|
@ -632,7 +638,7 @@ service {
|
||||||
},
|
},
|
||||||
"connect": {
|
"connect": {
|
||||||
"native": false,
|
"native": false,
|
||||||
"sidecar_service": {}
|
"sidecar_service": {},
|
||||||
"proxy": { // Deprecated
|
"proxy": { // Deprecated
|
||||||
"command": [],
|
"command": [],
|
||||||
"config": {}
|
"config": {}
|
||||||
|
|
|
@ -57,8 +57,7 @@ checks = [
|
||||||
name = "cpu"
|
name = "cpu"
|
||||||
args = ["/bin/check_cpu"]
|
args = ["/bin/check_cpu"]
|
||||||
interval = "10s"
|
interval = "10s"
|
||||||
},
|
}
|
||||||
...
|
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -82,8 +81,7 @@ checks = [
|
||||||
"name": "cpu",
|
"name": "cpu",
|
||||||
"args": ["/bin/check_cpu"],
|
"args": ["/bin/check_cpu"],
|
||||||
"interval": "10s"
|
"interval": "10s"
|
||||||
},
|
}
|
||||||
...
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -380,8 +380,7 @@ services {
|
||||||
"timeout": "60s"
|
"timeout": "60s"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
...
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -397,25 +396,32 @@ Add the `enable_tag_override` option to the `service` block and set the value to
|
||||||
|
|
||||||
<CodeTabs tabs={[ "HCL","JSON" ]}>
|
<CodeTabs tabs={[ "HCL","JSON" ]}>
|
||||||
|
|
||||||
|
<CodeBlockConfig highlight="4">
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
service {
|
service {
|
||||||
## ...
|
name = "redis"
|
||||||
|
port = 6379
|
||||||
enable_tag_override = true
|
enable_tag_override = true
|
||||||
## ...
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</CodeBlockConfig>
|
||||||
|
|
||||||
|
<CodeBlockConfig highlight="5">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"service": {
|
"service": {
|
||||||
## ...
|
"name": "redis",
|
||||||
"enable_tag_override": true,
|
"port": 6379,
|
||||||
## ...
|
"enable_tag_override": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</CodeBlockConfig>
|
||||||
|
|
||||||
</CodeTabs>
|
</CodeTabs>
|
||||||
|
|
||||||
This configuration only applies to the locally registered service. Nodes that register the same service apply the `enable_tag_override` and other service configurations independently. The tags for a service registered on one node update are not affected by operations performed on services with the same name registered on other nodes.
|
This configuration only applies to the locally registered service. Nodes that register the same service apply the `enable_tag_override` and other service configurations independently. The tags for a service registered on one node update are not affected by operations performed on services with the same name registered on other nodes.
|
||||||
|
|
Loading…
Reference in New Issue