Logging/Basic logging in kubernetes.

1.0K    Asked by MarkSullivan in Devops , Asked on Feb 19, 2020
Answered by Mark Sullivan

 Use “kubectl logs counter” command to fetch logs -:

Also, in kubernetes logs are created at node level.


Also, log rotation should be enabled to ensure logs don't acquire much disk space and only needed information should be present on disk.

Logs related to kubelet and container are journald and hence, present inside /var/log directory inside .log directories.




Your Answer

Interviews

Parent Categories