postfinance / kuota-calc

Simple utility to calculate the resource quota needed for your k8s deployment(s)
MIT License
24 stars 4 forks source link

Detailed view does not show max replicas to perform a safe rollout #1

Closed boskoop closed 4 years ago

boskoop commented 4 years ago

Detailed view displays the calculation as follows:

$ kustomize build | kuota-calc  --detailed
Version    Kind           Name            Replicas    CPU    Memory
apps/v1    Deployment     deployment-a    2           3      6Gi
apps/v1    Deployment     deployment-b    3           4      8Gi

In order to be more transparent it should possibly also show rollout strategy and the calculated result for MaxReplicas during "normal" operation.

E.g:

Version   Kind         Name           Replicas   Strategy        MaxReplicas   CPU   Memory
apps/v1   Deployment   deployment-a   2          RollingUpdate   3             3     6Gi
apps/v1   Deployment   deployment-b   3          RollingUpdate   3             4     8Gi