How to put tar.gz artifact to the Consul KV store
Yes, you can to upload not only text to the Consul KV store!
The first step is encoding your artifact to the base64, and second - upload it.But as you probably know - you can put up to 512kb to the Consul KV store, and encoding artifacts to the base64 growing up the size of artifacts something about 30%. And you know, of course, - Consul store all data in the KV in the memory, so do not neglect this feature.
You can encode and put artifact using command something like this:
base64 terraform.tgz | consul kv put -token=$CONSUL_HTTP_TOKEN terraform/us-central1/tool/config -
Комментарии
Отправить комментарий