Questions tagged [consul-kv]

The /kv endpoints access Consul's simple key/value store, useful for storing service configuration or other metadata.

It is important to note that each datacenter has its own KV store, and there is no built-in replication between datacenters. If you are interested in replication between datacenters, please view the Consul Replicate project.

Values in the KV store cannot be larger than 512kb.

For multi-key updates, please consider using transaction.

62 questions
0
votes
0 answers

Reading through Consul keys data in terraform

I have a problem where I am trying to read the values from terraform data Consul keys: These are the two data path I need to read to get a specific value: Path 1: private/plt-network/infrastructure/eu-west-1/vpc-layout where if env=="development" &&…
user3616775
  • 75
  • 1
  • 10
0
votes
2 answers

consul-template failed writing file: missing destination

I'm facing an issue on consul with consul-template. I'm trying to get a data from my kv store and send it to a .pem file with my template.hcl The problem is that, i have fill my template.hcl and when i'm trying to start my consul-template with this…
Valaire
  • 3
  • 1
0
votes
2 answers

Access consul-api from consul-connect-service-mesh

In a consul-connect-service-mesh (using k8) how do you get to the consul-api itself? For example to access the consul-kv. I'm working through this tutorial, and I'm wondering how you can bind the consul (http) api in a service to localhost. Do you…
0
votes
2 answers

Consul KV Store returns 403 on the parent folder of my key

I have a key in my KV store, let's say /global/test/my-key and I use a token that has the following policy : key "/global/test/my-key" { policy = "read" } Why, using the UI, I can access the URL…
Shashimee
  • 256
  • 3
  • 20
0
votes
1 answer

Configure Consul Watches with HTTP Endpoint Handler through CLI

I am starting out with Consul, and I was wondering if there is a way to set the HTTP handler configuration(s) (i.e. path, method, etc.) through the CLI command itself (consul watch), without using a configuration file (with -config-file…
0
votes
1 answer

Assigning Environment Variables from Consul KV using consul-template

I am very new to consul. I just want to load my environment variables from consul kv using consul-template. I have an consul kv entry having key "iamdbusername". I want to assign its value in an environment variable IAM_DB_USER with the help of…
0
votes
1 answer

How does consul KV consistency works in regards to updating the same key

If given a consul KV key a/key, where there are multiple agent server instances running, what happens if: Two requests A (set value to val-a) and B (set value to val-b) are made to the create key endpoint without making use of the parameters cas or…
0
votes
1 answer

Consul backend - VM vs Consul snapshots

I have installed Vault and Consul as a cluster in 5 VMs. The installation went smoothly but I still have a question I can't find an answer. I can make consul snapshot using consul snapshot save backup.snap and export it. Where is stored K/V data of…
Rei
  • 329
  • 2
  • 10
0
votes
1 answer

Deploy Vault and consul agent in same pod with TLS using helm

I m planning to use Vault Service as HA with Consul Backend with TLS using helm deployment for both consul and vault. I have already deployed consul using helm deployment in my EKS cluster. This would deploy consul client as a daemonset and consul…
td4u
  • 402
  • 5
  • 17
0
votes
1 answer

How to get the configuration for the React app from "CONSUL"

I was using .env files, to read all the configurations, now I want to read all my configurations from the consul at runtime. const consulServer = consul({ host: 'my-host', port:123, }) consulServer.kv.get('url', (err: any, response: { Value:…
Hemanth
  • 139
  • 1
  • 7
0
votes
1 answer

How to use Consul to perform synchronize task on one machine at a time?

I have a system with 10 machines where I need to perform a certain task on each machine one by one in synchronize order. Basically only one machine should do that task at a particular time. We already use Consul for some other purpose but I was…
user1950349
  • 4,738
  • 19
  • 67
  • 119
0
votes
1 answer

Consul KV read from Spring Integration transformers

We are trying to access consul KV store with the below set up in bootstrap and reading it with @Value("${configvalue}") in the code. application: name: appname cloud: consul: host: consulhost port: 8500 config : …
0
votes
1 answer

Consul KV store endpoints

I am working on designing a little project where I need to use Consul to manage application configuration in a dynamic way so that all my app machines can get the configuration at the same time without any inconsistency issue. We are using Consul…
dragons
  • 549
  • 1
  • 8
  • 24
0
votes
0 answers

Consul UI not able to load in Internet Explorer

I need to use the CONSUL UI and due to some limitations i need to stick with the internet explorer. I am not been successful to open the CONSUL UI in IE browser, whereas it is working perfectly fine in other browsers. Error Produced in the console…
Rajat Rokade
  • 115
  • 1
  • 7
0
votes
1 answer

ansible the way to use consul_kv change between two versions

I need some help on using consul_kv module with ansible version since 2.8.x , maybe i missed something, but i took a look to the code of the module and i don't realy see changes between 2.7.x and 2.8.x that can explay the problem i got. With ansible…