
Ultimate access to all questions.
You recently deployed an application to GKE with Pods writing files to a Compute Engine persistent disk. You created a PersistentVolumeClaim (PVC) and PersistentVolume (PV) in Kubernetes for the disk, and referenced the PVC in the deployment manifest.
After expanding the persistent disk due to near-full capacity, you notice the disk expansion isn't reflected in the container's file system when inspecting a Pod. What steps should you take to resolve this?
A
Set the spec.capacity.storage value of the PV object to match the size of the persistent disk. Apply the updated configuration by using kubectl.
B
Recreate the application Pods by running the kubectl delete deployment DEPLOYMENT_NAME && kubectl apply deployment.yaml command, where the DEPLOYMENT_NAME parameter is the name of your deployment and deployment.yaml is its manifest file.
C
Set the spec.resources.requests.storage value of the PVC object to match the size of the persistent disk. Apply the updated configuration by using kubectl.
D
In the Pod, resize the disk partition to the maximum value by using the fdisk or parted utility.