Questions tagged [etcd]

A highly-available key value store for shared configuration and service discovery

etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines. It’s open-source and available on GitHub. etcd gracefully handles master elections during network partitions and will tolerate machine failure, including the master.

Your applications can read and write data into etcd. A simple use-case is to store database connection details or feature flags in etcd as key value pairs. These values can be watched, allowing your app to reconfigure itself when they change.

Advanced uses take advantage of the consistency guarantees to implement database master elections or do distributed locking across a cluster of workers.

76 questions
0
votes
1 answer

etcdctl endpoint health --> unhealty?

If I run etcdctl it hangs. If I use --debug=true I see: root@k8scp:~# kubectl exec -n kube-system -it etcd-k8scp sh sh-5.1# ETCDCTL_API=3 etcdctl --debug=true endpoint…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

etcdctl: unknown command "save" for "etcdctl"

I entered the etcd container: kubectl -n kube-system exec -it etcd-k8scp -- sh The I try to backup the container like explained in the K8s docs ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save snapshotdb I get this error: Error: unknown…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

How to detect traffic change and trigger GitLab pipeline?

We have two etcd clusters running in Kubernetes one act as primary(A) and the second one act as backup(B). We also have etcdctl make-mirror in place between these two clusters, now the problem is if we switch traffic from cluster A to B then cluster…
Sam
  • 101
  • 1
0
votes
0 answers

How to fix etcd within a kuberentes cluster?

I have a bare-metal (kubeadm) kubernetes cluster that's really unstable, and I traced it back to an etcd issue. From the etcd pod's description I get: Image: k8s.gcr.io/etcd:3.4.13-0 Liveness: ... #success=1 #failure=8 Startup: ... #success=1…
Antoine
  • 281
  • 1
  • 3
  • 12
0
votes
1 answer

Kubernetes: kubeadm join fails in private network

I'm trying to set up a HA Kubernetes cluster on Hetzner Cloud following this guide. I've created 6 servers, 3 control plane hosts and 3 workers. When trying to use kubeadm to join the second server to the cluster I get the following errors: On…
mway-niels
  • 11
  • 1
  • 3
0
votes
1 answer

Centos 7, HA postgresql12, patroni with etcd v3.4

I followed this document but dont know how to enable v2 so that patroni can work with, can anyone help? https://computingforgeeks.com/setup-etcd-cluster-on-centos-debian-ubuntu/
0
votes
2 answers

ETCD database cluster certificate renewal for Kubernets external database setup

I have deployed 3 node external ETCD database (etcdctl version: 3.4.7) cluster for my Kubernetes v1.18.6 cluster using etcdadm tool. my certificate is expring in couple of months. I believe kubeadm alpha certs renew all command will renew kubernetes…
sfgroups
  • 243
  • 2
  • 4
  • 14
0
votes
1 answer

Kubernetes API: Compare and update config map key

Etcd has a concept of Atomic Compare-and-Update by comparing the key's value before executing an update. I'd like to use this feature for updating a ConfigMap in my Kubernetes cluster. I'd like to update the config map only if the existing config…
xpepermint
  • 267
  • 3
  • 10
0
votes
2 answers

Upgrade multi etcd cluster running inside docker container

Currently my k8s cluster is on v1.16.x and I want to upgrade it to v1.17.x for which ETCD has to be upgraded to 3.4 (currently 3.3). My setup is bit complex as I'm running ETCD outside the master nodes and it's a 3 node etcd cluster running as…
jagatjyoti
  • 101
  • 2
0
votes
0 answers

Kubernetes etcd panic: store.keyindex: put with unexpected smaller revision

After an ungraceful shutdown of our Kubernetes cluster, the API server didn't start working. After some investigation, I found the following errors in each etcd member on each node. How can I recover the cluster? Master1 2021-01-12 13:34:54.273559 I…
Ahmad Ahmadi
  • 103
  • 4
0
votes
1 answer

Error response from daemon: {“message”:“No such container: kubelet”}

When adding a new node to a Kubernetes cluster I end up with this error : + docker start kubelet Error response from daemon: {"message":"No such container: kubelet"} Error: failed to start containers: kubelet + sleep 2 This error occurs on a…
TheoV
  • 1
  • 1
  • 1
0
votes
0 answers

ETCD client connection to etcd servers from k8s api server issue

We expect the following issue with etcd cluster. We generated certificate with the following configuration: { "CN": "client", "hosts": [""], "key": { "algo": "ecdsa", "size": 256 }, "names": [ { …
0
votes
2 answers

How to recover from master failure in kubernetes

I have three nodes multi-master kubernetes(1.17.3) cluster(Stacked control plane and etcd nodes), 11.11.11.1 - master1 11.11.11.2 - master2 11.11.11.3 - master3 So before going to productions, I am trying possible failures and did below…
ImranRazaKhan
  • 150
  • 3
  • 15
0
votes
1 answer

Include own/external etcd cluster in kubeadm init

I have a running etcd cluster with five members (Own etcd cluster for Kubernetes). How can I include this in the kubeadm init command? My idea is that I generate the configuration, edit it manually and then run it. In theory, these are two commands,…
uav
  • 534
  • 5
  • 20
0
votes
1 answer

Installing kubernetes with external etcd - calico problems

I faced multiple problems during installation of k8s multimaster cluster with external etcd. I did it before twice, on other sites, successfully, but this time I need help. calico was installed from the recommended in guide yaml:…
Paul K.
  • 125
  • 1
  • 1
  • 9