Practice Test Persistent Volume Claims

Hi all

anyone can help
The application stores logs at location /log/app.log. View the logs.

how can i view the log of the application


Attach the hostPath volumes with container’s volumeMounts path. You can easily view the logs from host machine.

is it possible to write an example


kubectl exec -it pod-name – cat /log/app.log

Is it mention there you have to attach volumes with it?

thanks a lot , it works

Ohh! I thought you are going to deploy an application container and mounting logs with volumes.