PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #166
Your company runs applications in Google Kubernetes Engine (GKE). Several applications rely on ephemeral volumes. You noticed some applications were unstable due to the DiskPressure node condition…
The correct answer is B. Check the container/ephemeral_storage/used_bytes metric by using Metrics Explorer. Without exec access to workloads or nodes, you cannot run shell commands like df, eliminating options C and D. The container/ephemeral_storage/used_bytes metric available in Cloud Monitoring (Metrics Explorer) reports ephemeral storage consumption broken down at the container…
Question
Options
- ACheck the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
- BCheck the container/ephemeral_storage/used_bytes metric by using Metrics Explorer.
- CLocate all the Pods with emptyDir volumes. Use the df -h command to measure volume disk
- DLocate all the Pods with emptyDir volumes. Use the df -sh * command to measure volume disk
How the community answered
(39 responses)- A3% (1)
- B77% (30)
- C15% (6)
- D5% (2)
Explanation
Without exec access to workloads or nodes, you cannot run shell commands like df, eliminating options C and D. The container/ephemeral_storage/used_bytes metric available in Cloud Monitoring (Metrics Explorer) reports ephemeral storage consumption broken down at the container and Pod level, allowing you to pinpoint which specific Pods are consuming the most ephemeral storage and causing the DiskPressure condition. Option A (node/ephemeral_storage/used_bytes) only shows aggregate node-level usage and cannot identify individual offending Pods.
Topics
Community Discussion
No community discussion yet for this question.