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
1 answer

How to get multiple Consul KVs from different Consul context?

I have these KVs sources store on Consul: config/books/ config/common/ And in my spring boot app application.yml, I have config it as following: spring: application: name: sampleapp cloud: consul: host: localhost …
0
votes
0 answers

consul kv import 'no such file or directory' error, but file exists

I have a shell script that is attempting to start up my docker containers and then run a consul kv import command inside of them, but I am getting a no such file or directory error on the docker exec consul kv import @filepath command when I run it.…
tristan
  • 1
  • 2
0
votes
1 answer

What key-format and storage location to use for consul keys in microservices

I am planning to use consul for storing key/value(configuration) for microservices, Now initially we stored the configuration(key and value) in JSON file, however since i am moving the value to consul , what is the best practice to store keys in…
Pharaoh
  • 712
  • 1
  • 9
  • 33
0
votes
1 answer

Is it possible to render fully-qualified domain name (instead of IP address) of node using Consul Template?

I am trying to template config for an application using Consul Template. I would like the address of a node, discoverable using Consul, to be of the form metrics-server (or metrics-server.example.com which I could then parse). The below code is…
Blair Nangle
  • 1,221
  • 12
  • 18
0
votes
0 answers

consul watch not propagating SIGTERM to child process

The below script is written in start.sh trap 'kill -TERM ${consul_watch_pid} ${abc_pid} ${pqr_pid}; echo "start.sh got SIGTERM"; wait ${consul_watch_pid} ${abc_pid} ${pqr_pid}' TERM consul watch -http-addr=${hostIP}:7000 -type=key…
JavaDeveloper
  • 5,320
  • 16
  • 79
  • 132
0
votes
0 answers

How convert puppet site.pp to json on ruby?

I have site.pp in puppet 3.8 I want to convert site.pp to JSON. I found https://gist.github.com/atdt/3704340/be33cc0d1671dcbe8c4d4ede4cde3e0953546edf https://www.gavinmogan.com/2012/03/14/output-pretty-json-puppet But, i dont know how to convert…
Anton Patsev
  • 605
  • 2
  • 13
  • 27
0
votes
1 answer

Positive and negative sides of YAML and PROPERTIES config formats

I'm working on spring cloud app and can not decide which way of storing config in consul kv would be better: whole YAML or single parameters? What positive and negative sides has each way?
0
votes
0 answers

Is it possible to store a mix of encrypted and unencrypted key-value pairs in hashicorp vault?

I'm trying to find a solution to store a mix of encrypted and un-encrypted key-value pairs in vault with consul as the storage backend. I am aware that I can directly use consul's kv store to store un-encrypted key-value pairs and use vault only…
varun
  • 31
  • 1
  • 7
0
votes
1 answer

hashicorp consul is not publishing all the metrics

consul isn't publishing all the metrics defined in their document, from https://www.consul.io/docs/agent/telemetry.html#transaction-timing, it shows only raft metrics but not txn kvs, has anyone observed this problem? Command to enable prometheus…
Deepak Deore
  • 284
  • 3
  • 12
0
votes
1 answer

consul docker failed to persist data after docker is killed

I am using consul docker to save my key/value pair, this is the command I am using to start docker: docker run -d --name=dev-consul -e CONSUL_BIND_INTERFACE=eth0 -p 8500:8500 -v /Users/user1/projects/consul/consul_volumn/data:/consul/data …
user3006967
  • 3,291
  • 10
  • 47
  • 72
0
votes
1 answer

Consul Go Client redundant server connection

I'm testing a consul server cluster. I am using the go client for this. How do I enter multiple servers for the client to connect to? Optimally it would be something like: client, err := api.NewClient(api.DefaultConfig()) client.remotes =…
Cjen1
  • 1,826
  • 3
  • 17
  • 47
0
votes
1 answer

How to update consul key/value store without restarting consul service

I am new for consul service config management, Here I want to change the exiting key/value store data during runtime. The Consul running services can automatically take an updated values without restarting service.
Prakash Samy
  • 81
  • 1
  • 3
  • 15
0
votes
1 answer

How to create consul ACL that allow access to kv-group only by token?

I'm trying to understand Consul ACL system and it's looks impossible to create ACL that allow acces to some key only by token with default policy "allow": user@server01:~$ cat /etc/consul/conf.d/acl.json { "acl_datacenter": "dc-example-com", …
Sergio
  • 823
  • 1
  • 10
  • 24
0
votes
1 answer

Auto-updated key value in consul?

In the consul ui demo (https://demo.consul.io/ui/) each datacenter has a key called "global/time" which appears to show the current time, and is automatically updated. Is this a standard feature of consul (couldn't find it in the docs)? If not, how…
David H
  • 1,461
  • 2
  • 17
  • 37
0
votes
1 answer

Consul-Template Unexpected response code: 504

I am using Consul-Template to render a properties with the data gathered from Consul. The files are being rendered successfully but afterwards Consul-Template fails over and over again until it crashes: 2017/08/16 10:43:04.900637 [WARN] (view)…
apines
  • 1,254
  • 14
  • 36