Kubernetes - Container Logging đ
Description đ
Logging is a critical part of monitoring and debugging containerized applications. Kubernetes provides a native solution to collect and store container logs.
Basic Commands đ
- view
logsfor apod-
-f: follow thelogsas they are written, simmilar to dockerkubectl logs -f <pod-name>
-
-
if there are multiple
containersin thepod, you must specify thecontainernamekubectl logs -f <pod-name> -c <container-name>