etcd-client | An etcd v3 API client | Key Value Database library
kandi X-RAY | etcd-client Summary
kandi X-RAY | etcd-client Summary
An etcd v3 API client
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of etcd-client
etcd-client Key Features
etcd-client Examples and Code Snippets
Community Discussions
Trending Discussions on etcd-client
QUESTION
I'm trying to access my ETCD database from a K8s controller, but getting rpc error/EOF when trying to open ETCD client.
My setup:
- ETCD service is deployed in my K8s cluster and included in my Istio service mesh (its DNS record:
my-etcd-cluster.my-etcd-namespace.svc.cluster.local
) - I have a custom K8s controller developed with use of Kubebuilder framework and deployed in the same cluster, different namespace, but configured to be a part of the same Istio service mesh
- I'm trying to connect to ETCD database from the controller, using Go client SDK library for ETCD
Here's my affected Go code:
...ANSWER
Answered 2022-Mar-21 at 08:25Turned out to be version mismatch - my ETCD db is v3.5.2 and the clientv3 library that I used was v3.5.0. As seen in ETCD changelog (https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.5.md):
QUESTION
In one of our customer's kubernetes cluster(v1.16.8 with kubeadm) RBAC does not work at all. We creating a ServiceAccount, read-only ClusterRole and ClusterRoleBinding with the following yamls but when we login trough dashboard or kubectl user can almost do anything in the cluster. What can cause this problem?
...ANSWER
Answered 2022-Jan-07 at 08:45What you have defined is only control the service account. Here's a tested spec; create a yaml file with:
QUESTION
I'm trying to run etcd with 3 instances in AWS, but I'm getting the error below when I try to list the members:
...ANSWER
Answered 2021-Oct-19 at 07:59For me it looks like you followed https://etcd.io/docs/v3.5/demo/#set-up-a-cluster and if this is the case, there are 2 things that you should change:
- You used
localhost
in place of${THIS_IP}
variable when it should be vm IP address that is reachable from every vm in your cluster (it can be public or private address as long as it is reachable) - You used
etcdX
in--initial-cluster
option and those should be IPs of vm's and not names of etcd members
What I'd recommend is setting those variables in every vm:
QUESTION
just looking for some clarification here I have a 2 node etcd cluster:
...ANSWER
Answered 2021-Sep-09 at 09:25An etcd cluster needs a majority of nodes, a quorum, to agree on updates to the cluster state. For a cluster with n members, quorum is (n/2)+1. For any odd-sized cluster, adding one node will always increase the number of nodes necessary for quorum. Although adding a node to an odd-sized cluster appears better since there are more machines, the fault tolerance is worse since exactly the same number of nodes may fail without losing quorum but there are more nodes that can fail. If the cluster is in a state where it can’t tolerate any more failures, adding a node before removing nodes is dangerous because if the new node fails to register with the cluster (e.g., the address is misconfigured), quorum will be permanently lost.
So, in your case having two etcd nodes provide the same redundancy as one, so always recommended to have odd number of etcd nodes. code = DeadlineExceeded desc = context deadline exceeded
means that client is not able to reach etcd server and it timeouts. So it might the case, that you are trying to connect to a etcd server which is down and as a results you see the error. Please refer the below doc to know more
QUESTION
I have a kubernetes cluster on 1.18:
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.4", GitCommit:"c96aede7b5205121079932896c4ad89bb93260af", GitTreeState:"clean", BuildDate:"2020-06-17T11:33:59Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
I am following the documentation for 1.18 cronjobs. I have the following yaml saved in hello_world.yaml:
...ANSWER
Answered 2021-Jul-14 at 23:32Found a solution to this one after trying a lot of different stuff, forgot to update at the time. The certs were renewed after they had already expired, I guess this stopped a synchronisation of the certs across the different components in the cluster and nothing could talk to the API.
This is a three node cluster. I cordoned the worker nodes, stopped the kubelet service on them, stopped docker containers + service, started new docker containers, started the kubelet, uncordoned the nodes and carried out the same procedure on the master node. This forced the synchronisation of certs and keys across the different components.
QUESTION
I try to install Kubernetes 1.21.1 by kubespray master branch. It is behind proxy server. I filled in http_proxy, https_proxy,no_proxy to crio environment and global environment.
Master 1: 192.168.33.33 Master 2: 192.168.33.34 Master 3: 192.168.33.35
...ANSWER
Answered 2021-Jun-23 at 16:28The problem was allowed IPv6 on localhost. It was listening on IPv6 localhost as you can see below.
QUESTION
My certificates were expired:
...ANSWER
Answered 2021-Mar-30 at 09:45The ~/.kube/config
wasn't updated with the changes.
I ran:
QUESTION
I was trying to renew the expired certificates, i followed below steps and kubectl service started failing. I'm new to kubernetes please help me.
...ANSWER
Answered 2020-Nov-18 at 03:56The issue has been resolved. After replacing certificate data in kubelet.conf as suggested in https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#check-certificate-expiration
QUESTION
Description
I am relatively new to kubernetes. I can run my cluster when using the default socket (/var/run/dockershim.sock) but when I tried the crio socket to pull the images from my private repo I noticed the speed is not even close to compare with.
I am trying to configure all my nodes to use the crio.socket but I am failing to launch the master node with this socket.
I followed the documentation both from the kubernetes Configuring each kubelet in your cluster using kubeadm and also the git documentation cri-o.
Unfortunately I am not able to get it working as it seems to be ignoring the private repo flag.
Steps to reproduce the issue:
- Launch a master node (prime) with the following init (using a private repo):
ANSWER
Answered 2020-Jul-20 at 15:05So the problem is not exactly a bug on CRI-O
as we initially thought (also the CRI-O
dev team) but it seems to be a lot of configurations that need to be applied if the user desires to use CRI-O
as the CRI
for kubernetes
and also desire to use a private repo.
So I will not put here the configurations for the CRI-O as it is already documented on the ticket that I raised with the team Kubernetes v1.18.2 with crio version 1.18.2 failing to sync with kubelet on RH7 #3915.
The first configuration that someone should apply is to configure the registries of the containers where the images will be pulled:
QUESTION
I want to create a snapshot of the etcd instance. The etcd instance is running etcd version 3.3.10. I used ETCDCTL_API=3
in the following command:
ANSWER
Answered 2020-Jul-16 at 22:12"etcdctl snapshot save /path/file_name.db
" command works only when the api version is set to 3
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install etcd-client
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page