-
Check for Volume Mount:
- Use
kubectl describe pod <pod-name>to examine the Pod's specification. - Look for a volume mount that matches the component's log directory.
- If a volume mount exists:
- Determine the host path or persistent volume claim (PVC) associated with the volume.
- Access the log files directly from the host machine or by mounting the PVC.
- Use
-
If no Volume Mount:
- Use the following command to exec into the Pod's container:
Bash
kubectl exec -it <pod-name> -c <container-name> -- bash - Navigate to the log directory:
-
- Use
cdto navigate to the /var/log/epi directory within the container's shell.
- Use
-
View log files:
- Use
catto view the log files.
- Use
- Use the following command to exec into the Pod's container: