Store Data in Consul KV Flashcards

1
Q

There are two ways to interact with the Consul KV store: the _ and_

A

Consul CLI

UI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Insert value 25 in the keyredis/config/maxconns

A

consul kv put redis/config/maxconns 25

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Keys support setting a _ value that isn’t used internally by Consul, but can be used by clients to add metadata to any KV pair.

A

64-bit integer flag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Now, query for the value of one of the keys you just entered.

A

consul kv get redis/config/minconns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Consul retains some additional metadata about the key-value pair. Retrieve the some metadata (including the “flag” you set) using the_command line flag.

A

-detailed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List all the keys in the store using the_options. Results are returned in lexicographical order. (Say the command)

A

recurse

consul kv get -recurse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Delete all the keys with theredisprefix using the_option. (Say the command)

A

recurse

consul kv delete -recurse redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly