Hi , facing an issue with the question from 175. Practice Test - Persistent Vol . . .

Md Ishaq R:
Hi , facing an issue with the question from 175. Practice Test - Persistent Volumes and
Persistent Volume Claims … I’m looking for logs for pod webapp but unable to see them. could you please provide me help on how to look logs , Attaching screenshots for your reference. 1. Question 2 do not match as shown here. Here the logs path is /var/log/webapp, but in quiz it is /log/app.log and spec are not mentioned either. This seems solution for some other question. 2. When I ssh to the node01 to inspect the log file there is no log file or webapp folder in the /var/log… 3. There is no /var/log/webapp directory on node01





vishwanath:
Check if that log file is inside the pod

kubectl exec --stdin --tty podname – /bin/bash

Md Ishaq R:
yes i could locate log file it is inside the pod

Md Ishaq R:
but how would i access the logs from the masternode

vishwanath:
You can’t unless it is mounted to your pod