Coder Social home page Coder Social logo

kuota-calc's People

Contributors

ghouscht avatar lzecca78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kuota-calc's Issues

support HorizontalPodAutoscaler.v2.autoscaling

"no kind HorizontalPodAutoscaler is registered for version autoscaling/v2" :

$ kustomize build env/dev | kubectl kuota-calc --detailed
{"level":"warn","time":"2022-09-12T10:07:45+02:00","message":"no kind \"HorizontalPodAutoscaler\" is registered for version \"autoscaling/v2\" in scheme \"pkg/runtime/scheme.go:100\""}
$ kubectl kuota-calc --version
version 0.2.2 (revision: 4f9a7c3c570b409e6ac3f2d0ed21b51d78817740)
        build date: 2021-12-21T06:24:08Z
        go version: go1.17.5

support more k8s resources

compute

  • Daemonset (number of replicas?)
  • Job (Batch/Cron)
  • Plain Pods?

other

  • Pod count
  • Secret count
  • Service count (normal, lb, nodeport)

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.