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
5
votes
2 answers

Consul HTTP requests to get all kv values

I need to get all the consul kv values using http api. Currently I can get the one value with the following command. curl -k -X GET https://consul.banuka1.us-east-2.test:8543/v1/kv/banuka-test/test-value?token=1995-08-18 it returns only the value…
Jananath Banuka
  • 493
  • 3
  • 11
  • 22
5
votes
1 answer

consul batch KV pairs HTTP post using HTTP api (Import a huge json through HTTP API)

I have application configuration in a json with upto 80 key/value pairs per app, which are to be stored in Consul KV Store. Generally they are java keyvalue properties, I have a simple shell script, which does encode value and convert it into import…
Venu S
  • 3,251
  • 1
  • 9
  • 25
4
votes
0 answers

Do consul possess an upper limit on number of consul watches?

I am creating 200 watcher and i am getting EOF error repeatedly while Querying any consul CLI commands and then disconnection takes place. on consul logs i am seeing “too many files open” error while getting my consul up itself. for ~150 entries I’m…
4
votes
1 answer

Make Consul UI read-only

We use Consul and we are willing to enforce that developers can alter it only using git2consul approach, to retain the history of property changes and maintain a backup. In order to ensure that, we would like to make Consul Key-Value browser UI…
onkami
  • 8,791
  • 17
  • 90
  • 176
4
votes
1 answer

Locking a KV with consul

I am trying to acquire a lock on a KV pair on consul while updating it, so no one else can update it. Initially I have curl -XGET http://localhost:8500/v1/kv/hosts?raw {"k1":"v1"} Now I get a session curl -XPUT…
user1191140
  • 1,559
  • 3
  • 18
  • 37
2
votes
1 answer

Spring Cloud Consul Configuration Versioning

I am trying to figure out how are you supposed to be versioning the Consul configurations. My goal is to be able to prepare the production configurations for the next version without touching the existing ones. And also to be able to revert to the…
2
votes
1 answer

Vault .NET - Invalid path for a versioned K/V secrets engine

I've added all my configuration details in the Vault. The detail you can see in the attached image below. This follows a specific path i.e kv/unistad/dev/workflow/camunda/1.0 However, when I try to read this information using Vault.NET with the…
2
votes
0 answers

Traefik cluster + Consul KV + ACME - CERTS NOT RENEWED "Error calling Leadership listener: Existing key does not match lock use"

I'm running a traefik stack on docker with consul as a backend store. My cluster is made of three nodes and has traefik configured to renew certificates with ACME every 3 months automatically 30 days before expiry. However, the certs are not getting…
PixelatedPixie
  • 121
  • 3
  • 9
2
votes
1 answer

Hashicorp Consul - How to do verified TLS from Pods in Kubernetes cluster

I'm having some difficulty understanding Consul end-to-end TLS. For reference, I'm using Consul in Kubernetes (via the hashicorp/consul Helm chart). Only one datacenter and Kubernetes cluster - no external parties or concerns. I have configured my…
Aaron Hastings
  • 327
  • 2
  • 10
2
votes
2 answers

how to attach watches for consul using REST API?

I use REST API for accessing consul. for example here is how I create an entry curl -X PUT -d @- localhost:8500/v1/kv/example <<< FooValue I want to add watches to consul that notify my service when a key-value is changed. The documentation gives…
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
1 answer

Reading empty string from consul using spring-cloud-consul

I'm migrating from file based .properties file to consul based configuration in my spring application. I'm using spring-cloud-consul. Earlier in my property file I had a property like following test.key= In spring application class corresponding…
Sudheera
  • 1,727
  • 1
  • 12
  • 28
2
votes
1 answer

Import Key Value Pair from Json File Consul

I am new to Consul. I am trying to import a key/value pair from Json File. (working in windows env) But when I try to import with the following command, facing error. Command: consul.exe kv import @keyvalue.json Contents: {"MYVAR":…
NANDAKUMAR THANGAVELU
  • 611
  • 3
  • 15
  • 34
1
vote
1 answer

Consul (KV) is wiping off all data when restarting Kubernetes cluster

I am currently working on Spring micro-service(Eureka Implementation) project. To manage the distributed configuration we are using Consul KV. We are deploying services on Kubernetes cluster. The issue I am facing that, whenever I restart the…
Bhaumik Thakkar
  • 580
  • 1
  • 9
  • 28
1
vote
1 answer

Install 2 Consul's client agents (separated clusters) on the same host

I have 2 different HashiCorp Consul clusters (lets call them cluster A and cluster B) running on different hosts. My Python app is running on a host which I already installed on 1 client agent configured to cluster A and I want my app will be able…
Orel Yamin
  • 15
  • 4
1
vote
0 answers

Not able to read consul key value properties into spring boot application

I am very new to the consul. Started with POC, able to establish communication between two services using the consul, but unable to read key/value pairs from consul into spring boot application. Have gone through all the solutions available on the…
1
2 3 4 5