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.

74 questions
0
votes
1 answer

OpenShift Origin asks for credentials

I had a cluster OpenShift with a master and a node. Today, it doesn't work anymore, OpenShift continously asks me the credentials, the following is the command and the output: [root@openshift-master ~]# openshift start master…
DarkSkull
  • 161
  • 1
  • 9
0
votes
2 answers

etcd2 will not start via systemctl on CoreOS

Really hoping somebody can help me out here. I had a CoreOS etcd2 member's disk fill up. After a reboot etcd2 was in a bad way. Ultimately I removed the /var/lib/etcd2/member data directory and went through the instructions to remove and re-add the…
0
votes
2 answers

CoreOS: Inject a real private IP in etcd2 cloud-config

I have three networks on Rackspace: Public network Service network 10.181.XXX.XXX (they call it a private network sometimes but it is not private per-se, it is datacenter-wide private so their tenants may share it) A real private network of…
Barbadoss
  • 129
  • 4
0
votes
1 answer

on etcd node, where can I find standby mode indicator?

In 0.4 branch, how can I determine, that node is in standby mode? I can tell if it is follower/leader by using /v2/stats/self API call, but no standby info in there. https://coreos.com/blog/etcd-0.4.0/
mighq
  • 355
  • 3
  • 11
0
votes
1 answer

All kube-system pods keep crashing, etcd receives sigterm

I'm trying to set up an on-premises Kubernetes cluster. For starters I used kubeadm to initialize my control plane on one node. But all kube-system pods constantly crash. I took a deep look into the pod logs via crictl and it turns out that most…
Be Ku
  • 101
0
votes
0 answers

Changed IP addresses of etcd nodes. How to restart cluster?

I have a k8s cluster set up using 'hardway' a while ago. I've recently changed my network around and needed to set new IPs for the controller nodes (which are also the clustered etcd hosts). I've updated the IP addresses in the systemd unit file,…
spoovy
  • 334
  • 4
  • 14
0
votes
0 answers

Error from server: etcdserver: request timed out - error after etcd backup and restore

I have done the etcd backup and then a restore on the same cluster and now I'm having these issues where I can list resources but I can't create or delete. It's a 1 master and 2 workers setup , installed using kubeadm. I was running this cluster for…
Tomas.R
  • 111
  • 1
0
votes
0 answers

Why is iptables blocking return traffic?

OS: Ubuntu 18.04.6 Firewall type: IPtables. UFW is Disabled. I have Kubernetes cluster with 3 nodes that provide the controlplane and etcd services, named cp01, cp02 and cp03. I see that etcd traffic from each of the Controlplane/etcd nodes works…
Stefan Lasiewski
  • 22,949
  • 38
  • 129
  • 184
0
votes
0 answers

How can I configure an etcd cluster to work with salt stack master?

The official documentation ( https://docs.saltproject.io/en/latest/ref/cache/all/salt.cache.etcd_cache.html#module-salt.cache.etcd_cache ) shows this example config: etcd.host: 127.0.0.1 etcd.port: 2379 etcd.protocol: http etcd.allow_reconnect:…
nagylzs
  • 657
  • 2
  • 8
  • 21
0
votes
0 answers

ETCD snapshots causing etcdserver: leader changed

For a while now we've experienced regular errors from operations on kube API in AKS resulting in etcdserver: leader changed message. From what we've learned there is an ETCD snapshot performed every 2h on AKS resulting in this leader change. This 2h…
0
votes
0 answers

Clean install of Kubernetes on Raspberry Pi doesn't work

I'm trying to do a clean install of Kubernetes 1.23.x on a cluster of four Raspberry Pis, each running the x64 version of Raspberry Pi OS, however I am running into a major snag as soon as I try and run kubeadm init on the master node (before even…
soapergem
  • 719
  • 4
  • 13
  • 29
0
votes
0 answers

Kubernetes (Kops): Get https://127.0.0.1:4001/health: remote error: tls: bad certificate

I am seeing below error running "kubectl get componentstatus". NAME STATUS MESSAGE ERROR scheduler Healthy ok etcd-1 Unhealthy Get…
gmairi
  • 1
  • 1
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,113
  • 14
  • 59
  • 110
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,113
  • 14
  • 59
  • 110
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