13.2 Viewing Pod Logs
To view logs for a pod use the following
command:
kubectl logs <pod> -n <namespace>
For example:kubectl logs oudsm-1 -n oudsmns
Note:
If you add-f
to the command, then the log
will be streamed.