A civic GIS app Pod is Running but returns wrong basemap tiles. The developer wants to inspect files under /etc/gis and test DNS from inside the container. Which approach fits?
Select an answer to reveal the explanation.
Short Explanation
exec is like stepping into the truck cab while the engine is running—you can open the glove box and ping the radio tower from there. Great for live file and DNS checks. Logs alone will not list /etc/gis for you.
Full Explanation
kubectl exec attaches a command session to a running container, enabling interactive inspection of the filesystem, environment, and in-Pod network/DNS behavior. It complements logs rather than replacing them. hostNetwork does not expose the container filesystem to the laptop, and deleting the Pod loses the live state you need to inspect.