robscott / kube-capacity

A simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
Apache License 2.0
2.15k stars 115 forks source link

pull vpa recommendations (?) #33

Open joe-carpenter opened 4 years ago

joe-carpenter commented 4 years ago

just an idea, but vpa-recommender could be used to generate some extra info (if the user is running it in their cluster) for pods... the output might be something like this

NODE                                          NAMESPACE       POD                                                      CPU REQUESTS    CPU LIMITS     CPU UTIL     CPU RECOMMENDATION      MEMORY REQUESTS   MEMORY LIMITS    MEMORY UTIL    MEMORY RECOMMENDATION
...
ip-12-34-567-89.eu-west-2.compute.internal   my-namespace     my-pod-7d95ccc554-2ltsq                                  600m (3%)       0m (0%)        4m (0%)      123m                    1024Mi (1%)       1024Mi (1%)      431Mi (0%)     789Mi
joe-carpenter commented 4 years ago

.. although come to think of it the user would have to have VPA objects for all their pod controllers, which is probably a significant minority of users 😆

robscott commented 4 years ago

That's an interesting idea, thanks for filing this issue! I'm not quite sure if/when I'll have time to implement something like that, but open to any contributions. As an alternative, I really like what @sudermanjr and the Fairwinds team have done with Goldilocks to help with VPAs.