Post

Troubleshooting Tips Per Topic

Troubleshooting Tips Per Topic

Troubleshooting Tips Per Topic

CKA Tips

  • In this section we’ll provide some tips on how troubleshoot issues based on CKA topics.

General Tips

  1. Use tail and grep to follow the logs real time.
  2. Always make a copy of the any files before modifying.
  3. Set up the environment before starting the exam
1
2
3
4
5
alias k=kubectl                         # will already be pre-configured

export do="--dry-run=client -o yaml"    # k create deploy nginx --image=nginx $do

export now="--force --grace-period 0"   # k delete pod x $now

Apiserver Crash/Misconfiguration

FileLocation
Configuration/etc/kubernetes/manifests/kube-apiserver.yaml
Logs/var/log/pods
 /var/log/containers
 crictl ps and crictl logs <containerid>
 docker ps and docker ps <containerid>
Kubelet Config/var/lib/kubelet/
Kubelet Logs/var/log/syslog or journalctl

systemctl commands

CommandDescription
systemctl cat <service_name>To check the service configuration
This post is licensed under CC BY 4.0 by the author.