kubectl get --raw "/api/v1/nodes/ip-172-31-92-255.eu-west-1.compute.internal/proxy/stats/summary" | jq -r '
  .pods[] 
  | select(.["ephemeral-storage"].usedBytes > 1000000) 
  | [
      .podRef.namespace, 
      .podRef.name, 
      ((.["ephemeral-storage"].usedBytes / 1024 / 1024 | floor | tostring) + " MB")
    ] 
  | @tsv' | column -t -s $'\t'
for NODE in `kubectl get no --no-headers=true -o name | cut -d '/' -f2`; do kubectl get --raw "/api/v1/nodes/${NODE}/proxy/stats/summary" | jq -r '
  .pods[] 
  | select(.["ephemeral-storage"].usedBytes > 1000000) 
  | [
      .podRef.namespace, 
      .podRef.name, 
      ((.["ephemeral-storage"].usedBytes / 1024 / 1024 | floor | tostring) + " MB")
    ] 
  | @tsv' | column -t -s $'\t'; done
Enter your comment. Wiki syntax is allowed:
 
  • devops/k8s_ephemeral_storage_consumption.txt
  • Last modified: 2026/03/26 10:01
  • by admin