Question on etcd and journalctl logs

Lab- CKA Mock Exam 10 - KodeKloud

ā€¢ kubectl config use-context cluster4

The controlplane node called cluster4-controlplane in the cluster4 cluster is planned for a regular maintenance. In preparation for this maintenance work, we need to take backups of this cluster. However, something is broken at the moment!

Troubleshoot the issues and take a snapshot of the ETCD database using the etcdctl utility at the location /opt/etcd-boot-cka18-trb.db.

Note: Make sure etcd listens at its default port. Also you can SSH to the cluster4-controlplane host using the ssh cluster4-controlplane command from the student-node.
Troubleshooting:
On running the command k get pod -A below error was encountered
The connection totheserver cluster4-controlplane:6443was refused - did you specify therighthost orport?
In soln the command journalctl -u kubelet -f is used, so my question is why are we checking kubelet logs(as we have issue on etcd)? And how to know what logs we need to focus on as there are lots of logs?

Hi @uzmashafi061

The issue is not directly linked to the ETCD but to the cluster himself. Please see below a guide how to troubleshooting.

2 Likes