kubernetes – How can get the kubectl describe output to a table format

I am using Kubernetes VPA as a resource recommender tool for my cluster and its generating the recommended specification for each deployment. But I would like to get a automated way to create the vpa recommendation to all the existing VPAs in a much readable format ( preffered way is table format) dynamically.

I tried to create an Azuredevops pipeline and when parsing the json path from the kubectl get command I am not getting the resulted output.

k get  vpa myvpa -n mynamespace -o jsonpath="{status.recommendation.containerRecommendations.containerName[*]}"

Read more here: Source link