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?
'Computer Science > Kubernetes(CKA) 자격증 준비' 카테고리의 다른 글
Kubernetes 정리 191: Application Configuration (0) | 2023.03.07 |
---|---|
Kubernetes 정리 190: Solution - Persistent Volumes and Persistent Volume Claims (0) | 2023.03.07 |
Kubernetes 정리 188: Using PVCs in PODs (0) | 2023.03.07 |
Kubernetes 정리 187: Persistent Volume Claims (0) | 2023.03.07 |
Kubernetes 정리 186: Persistent Volumes (0) | 2023.03.06 |