Writing to etcd

Adding a KV pair to an etcd cluster

Prerequisites

  • Install etcdctl

Procedure

Use the put subcommand to write a key-value pair:

etcdctl --endpoints=$ENDPOINTS put foo "Hello World!"

where:

  • foo is the key name
  • "Hello World!" is the quote-delimited value

Last modified March 28, 2024: Update how-to-access-etcd (#812) (dd230ad)