Difficulty with this Question


how to view the logs location stores in the pod?
I stay for a long time nut I could not.
I need your help
I wish there was a hit at least :frowning:

Hello @hussam,

You can view the logs in a pod two ways.

Query using kubectl

  • kubectl logs POD_NAME

Login to the pod

  • kubectl exec -it POD_NAME /bin/sh
  • cat /log/app.log

Hope this helps!

Hello, hussam
You can see the specific pod’s logs. “kubectl exec pod-name – cat /log/app.log”