etcd (v3.4): Quick Start on Mac

This post describes how to use etcd on Mac.


what is etcd?

etcd is an open source KVS. It is also one of k8s core components.

This YouTube video from IBM Cloud is great to understand its features:

https://www.youtube.com/watch?v=OmphHSaO1sE


install

% brew install etcd


% etcd --version

etcd Version: 3.4.15

Git SHA: Not provided (use ./build instead of go build)

Go Version: go1.16

Go OS/Arch: darwin/amd64


% etcdctl version  

etcdctl version: 3.4.15

API version: 3.4


run

$ etcd


usage

The following lists the available command options (version 3.4), which are used in this post.

% etcdctl help

COMMANDS:

del Removes the specified key or range of keys [key, range_end)

get Gets the key or a range of keys

put Puts the given key into the store


CRUD

% etcdctl put key1 val1

OK

% etcdctl get key1     

key1

val1

% etcdctl put key1 val2

OK

% etcdctl get key1     

key1

val2

% etcdctl del key1     

1

% etcdctl get key1

%


Comments

Popular posts from this blog

Selenide: Quick Start

Minikube Installation for M1 Mac

Server Testing Tools: Serverspec, InSpec, Testinfra, Goss