Closed yess1987 closed 1 year ago
let me try and wait for my good news
We need to use the c library to get the role of etcd , is there a solution?
Can you describe in detail about "the role of etcd" ?
e.g. Is the etcd a built-in component of Kubernetes (for API Server to save cluster information) or something you deploy it for your workload ?
And is this what you want ?
kubectl exec etcd-kind-control-plane -n kube-system -- etcdctl role list
I need to know which node is the leader in k8s, so consider using the leader in etcd
Can you find a solution for your requirement via kubectl
?
The C client library only communicates with the Kubernetes API server, which behaves like client-go/kubectl.
You shouldn't need to look at etcd, you can look at the labels on the node to determine where the api server is, specifically the node-role.kubernetes.io/control-plane
should be present on any nodes that contain the Kubernetes control plane.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
We need to use the c library to get the node status, is there a solution?