How to verify the content of a pod in kubernetes ?

Use kubectl exec to access the pod and run a command to check file content.
Example:
kubectl exec -it pod-name -- cat /usr/share/nginx/html/index.html
Пожалуйста, войдите, чтобы спрашивать, отвечать, делиться, ставить лайки и голосовать.