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
logs
for apod
-
-f
: follow thelogs
as they are written, simmilar to dockerkubectl logs -f <pod-name>
-
-
if there are multiple
containers
in thepod
, you must specify thecontainer
namekubectl logs -f <pod-name> -c <container-name>