kubectl logs retrieves container logs from a Kubernetes pod. Use it as a practical starting point for inspecting a microservice running in a cluster. section 11.2.4
Retrieve a pod's logs
Find the pod's unique Kubernetes-generated name, then replace the placeholder with that name. For example, a metadata microservice might use a name such as metadata-55bb6bdf58-7pjn2. section 11.2.4
kubectl logs <pod-name>
Use the command template kubectl logs <pod-name> with the actual pod name from the cluster. section 11.2.4
For multiple replicas or continuously streaming logs, Stern can match pods by partial name; the Kubernetes dashboard offers visual inspection of pod logs and other resources. section 11.2.4


