Log
TOC
Feature Introduction
Understand the logs during the instance operation process from the container level, such as MySQL error logs. Proper use of logs can help you quickly locate issues and handle faults and exceptions.
Procedure
- View all related pods of the instance, including the mysql pod and mysql-router pod.
kubectl get pod -n ${namespace} -l "middleware.instance/name=${instance_name}"
- Query the logs for a specific pod.
kubectl logs -n ${namespace} ${pod_name}