KUBERNETES: K8S: How To Check ETCD End Points Using ETCDCTL Command
Below is command to use.
sudo ETCDCTL_API=3 etcdctl --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key --cacert=/etc/kubernetes/pki/etcd/ca.crt --endpoints=https://127.0.0.1:2379 --write-out=json endpoint status | jq
Below is sample command. This command shows the local control/master node details and Kubernetes master/control node details which is the leader.
[
{
"Endpoint": "https://127.0.0.1:2379",
"Status": {
"header": {
"cluster_id": 9247294573879093000,
"member_id": 17298998407400020000,
"revision": 328985,
"raft_term": 2
},
"version": "3.5.6",
"dbSize": 2273280,
"leader": 17298998407400020000,
"raftIndex": 380622,
"raftTerm": 2,
"raftAppliedIndex": 380622,
"dbSizeInUse": 978944
}
}
]
No comments:
Post a Comment