ETCD for Beginners
- Take me to the Video Tutorial
In this section, we will take a quick look at introduction to ETCD for beginners.
- What is ETCD?
- What is a Key-Value Store?
- How to get started quickly with ETCD?
- How to operate ETCD?
What is a ETCD?
- ETCD is a distributed reliable key-value store that is simple, secure & Fast.
What is a Key-Value Store
-
Traditionally, databases have been in tabular format, you must have heard about SQL or Relational databases. They store data in rows and columns
-
A Key-Value Store stores information in a Key and Value format.
Install ETCD
-
It’s easy to install and get started with
ETCD.-
Download the relevant binary for your operating system from github releases page (https://github.com/etcd-io/etcd/releases)
For Example: To download ETCD v3.5.6, run the below curl command
$ curl -LO https://github.com/etcd-io/etcd/releases/download/v3.5.6/etcd-v3.5.6-linux-amd64.tar.gz -
Extract it.
$ tar xvzf etcd-v3.5.6-linux-amd64.tar.gz -
Run the ETCD Service
$ ./etcd -
When you start
ETCDit will by default listen on port2379 -
The default client that comes with
ETCDis theetcdctlclient. You can use it to store and retrieve key-value pairs.Syntax: To Store a Key-Value pair $ ./etcdctl put key1 value1Syntax: To retrieve the stored data $ ./etcdctl get key1Syntax: To view more commands. Run etcdctl without any arguments $ ./etcdctl
K8s Reference Docs:
-