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 (preferred way is table format) dynamically.
I tried to create an Azure Devops 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[*]}'
2
Answers
This solved my requirement.
You might wanna fetch the VPAs with kubectl and pipe that into jq, something like