본문 바로가기

Computer Science/Kubernetes(CKA) 자격증 준비

Kubernetes 정리 189: Practice Test - Persistent Volumes and Persistent Volume Claims

Q1. We have deployed a POD. Inspect the POD and wait for it to start running.

Q2. The application stores logs at location /log/app.log. View the logs.

You can exec in to the container and open the file:

kubectl exec webapp -- cat /log/app.log

Q3. If the POD was to get deleted now, would you be able to view these logs.

Q4. Configure a volume to store these logs at /var/log/webapp on the host.

Use the spec provided below.

Q5. Create a Persistent Volume with the given specification.

Q6. Let us claim some of that storage for our application. Create a Persistent Volume Claim with the given specification.

Q7. What is the state of the Persistent Volume Claim?

Q8. What is the state of the Persistent Volume?

Q9. Why is the claim not bound to the available Persistent Volume?