Skip to content

Instantly share code, notes, and snippets.

@rammanokar
Last active September 23, 2022 19:44
Show Gist options
  • Save rammanokar/bff6fe785ca86609789770cf9dca0ac8 to your computer and use it in GitHub Desktop.
Save rammanokar/bff6fe785ca86609789770cf9dca0ac8 to your computer and use it in GitHub Desktop.
VPA Recommendation to CSV

VPA Recommendation to CSV

kubectl -n draco get vpa -o json | yq '.items[].status.recommendation.containerRecommendations[] | (.containerName +","+.target.cpu + "," + .upperBound.cpu +","+ .target.memory + "," + .upperBound.memory) '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment