Skip to content

Instantly share code, notes, and snippets.

@carljavier
Last active April 11, 2022 00:31
Show Gist options
  • Save carljavier/09523d02846caff24feac8455d5c3445 to your computer and use it in GitHub Desktop.
Save carljavier/09523d02846caff24feac8455d5c3445 to your computer and use it in GitHub Desktop.
Consul Vault Service Query
{
"Name": "",
"Template": {
"Type": "name_prefix_match"
},
"Service": {
"Service": "${name.full}",
"Failover": {
"NearestN": 2
}
}
}
{
"Name": "vault",
"Service": {
"Service": "vault",
"Tags": ["active"],
"Failover": {
"NearestN": 2
"Datacenters": ["dc2","dc3"]
},
"OnlyPassing": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment