Questions tagged [etcd]

etcd is a highly-available key value store for shared configuration and service discovery, inspired by Apache ZooKeeper and doozer.

etcd is a highly-available key value store for shared configuration and service discovery, inspired by Apache ZooKeeper and doozer, with a focus on being:

  • Simple: curl'able user facing API (HTTP+JSON)
  • Secure: optional SSL client cert authentication
  • Fast: benchmarked 1000s of writes/s per instance
  • Reliable: properly distributed using Raft

etcd is written in Go and uses the Raft consensus algorithm to manage a highly-available replicated log.

543 questions
6
votes
5 answers

Pythonic way to detach a process?

I'm running an etcd process, which stays active until you kill it. (It doesn't provide a daemon mode option.) I want to detach it so I can keep running more python. What I would do in the shell; etcd & next_cmd I'm using python's sh library, at the…
Alex Altair
  • 3,246
  • 3
  • 21
  • 37
6
votes
2 answers

Using etcd to manage Django settings

Let's say that I have a Django app, and I've offloaded environment variable storage to etcd. When I deploy a new server, the app can read from etcd, write the vars into (for example) a Python file that can be conditionally loaded on the app boot.…
Carson
  • 17,073
  • 19
  • 66
  • 87
5
votes
1 answer

How to remove a master node from a HA cluster and also from etcd cluster

I am new to k8s and I found a problem that I can not resolve. I am building a HA cluster of Master nodes. I am running some tests (removing one node and adding the node again). Through this process I noticed that the etcd cluster does not update the…
Thanos
  • 1,618
  • 4
  • 28
  • 49
5
votes
2 answers

In a Kubernetes cluster, is there a way to migrate etcd from external to internal?

I made a Kubernetes cluster one year ago with an external etcd cluster (3 members). A the time, I did not know that it was possible to make an etcd internal, so I made an external cluster and connected Kubernetes to it. Now I am seeing that an…
Nurza
  • 201
  • 2
  • 10
5
votes
2 answers

Recover a Kubernetes Cluster

At the moment I have a Kubernetes cluster distributed on AWS via kops. I have a doubt: is it possible to make a sort of snapshot of the Kubernetes cluster and recreate the same environment (master and pod nodes), for example to be resilient or to…
falberto89
  • 163
  • 9
5
votes
2 answers

why use etcd?Can I use redis to implement configuration management/service discovery etc.?

I learned etcd for a few hours, but a question suddenly came into me. I found that redis is fully capable of covering functions which etcd owns.Like key/value CRUD && watch, and redis is very simple to use. why people choose etcd instead of…
ericxu1983
  • 65
  • 1
  • 5
5
votes
2 answers

How to backup etcd on a Kubernetes cluster created with kubeadm - rpc error: code = 13

I have a K8s cluster created with kubeadm that consists of a master node and two workers. I am following this documentation article regarding the etcd backup:…
codependent
  • 23,193
  • 31
  • 166
  • 308
5
votes
2 answers

How to use etcd v3 restful api to watch

i am trying to watch key with etcdv3 restful api,following etcd/Documentation/dev-guide/api_grpc_gateway.md,but it seems not work well with watch. curl http://localhost:2379/v3beta/watch \ -X POST -d '{"create_request": {"key":"Zm9v"} }' …
He Cheng
  • 51
  • 1
  • 2
5
votes
0 answers

Etcd watch different clients

I struggle with getting etcd watch working with combination of clients. What works: I do Watchin golang client and I do put also there. Then watch register change. If I use etcdctl in same way i.e. watch/listen both in command line it also…
svobol13
  • 1,842
  • 3
  • 25
  • 40
5
votes
1 answer

What is Kubernetes HA cluster failure behaviour in split-brain scenarios between racks?

I am interested in the behaviour of multi-master Kubernetes in the event of different types of failure, particularly if the masters are on different racks. Scenario: 2 racks, R1, R2. API Masters: M1 on R1, M2 on R2. Worker nodes: W1 on R1, W2…
John
  • 10,837
  • 17
  • 78
  • 141
5
votes
1 answer

How good are ZooKeeper and Etcd?

Disclaimer: I'm quite new for the etcd project and ZooKeeper project. I'm recently getting interested in the distributed open source products. I found they seems to require configuration(coordination?) systems such as ZooKeeper for Presto DB, Hive…
k-kawa
  • 1,289
  • 2
  • 11
  • 18
5
votes
1 answer

Can Pod/Service still work if kube-master or etcd service down?

If kube-master or etcd service down in my kubernetes cluster, can my Pod/Service still work? Also, if the network is still work?
X.G
  • 85
  • 2
5
votes
2 answers

Is it possible to run kubernetes as a docker container?

I'm very new to kubernetes and trying to conceptualize it as well as set it up locally in order to try developing something on it. There's a confound though that I am running on a windows machine. Their "getting started" documentation in github says…
Alex C
  • 16,624
  • 18
  • 66
  • 98
5
votes
2 answers

Getting "connection refused" when trying to access etcd from within a Docker container

I am trying to access etcd from within a running Docker container. When I run curl http://172.17.42.1:4001/v2/keys I get curl: (7) Failed to connect to 172.17.42.1 port 4001: Connection refused I have four other hosts where this works fine, but…
Kris Harper
  • 5,672
  • 8
  • 51
  • 96
5
votes
2 answers

Command not found while trying to build package with ansible

I have a simple ansible playbook which builds etcd: - hosts: all vars: repo_location: /var/lib/etcd/src/ roles: - joshualund.golang #to install go tasks: - name: Clone etcd action: git…
1 2
3
36 37