GithubHelp home page GithubHelp logo

seifrajhi / k8s-random-deploys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rothgar/k8s-random-deploys

0.0 1.0 0.0 29 KB

Deploy example workloads with random requests and limits

License: MIT License

Shell 100.00%

k8s-random-deploys's Introduction

Random Kubernetes Deployments

This is a set of scripts to create Kubernetes deployments that have random requests and limits. It allows you to provide a deployment template and then create workloads based on it. These scripts were designed to demo karpenter but you can use them by providing your own templates.

These tools were used to create demos like the one found here

Scripts

create-workloads.sh

create-workloads.sh creates deployments

example

# create 1000 pods using deployments 
# with 250 replicas each
# use fast.template.yaml

create-workloads.sh \
  -t 1000 \
  -b 250 \
  -f fast-template.yaml

delete-workloads.sh

delete-workloads.sh deletes deployments This will delete all deployments. Use with caution.

Optional arguments are passed to kubectl

examples

delete-workloads.sh

delete workloads in a namespace

delete-workloads.sh -n default

scale-deployments.sh

scale-deployments.sh can randomly scale deployments up and down between 1-10 percent of existing deployment replicas. It will scale all deployments with an optional sleep between scaling activities. You can also set a scaling direction (up or down) to scale randomly in a single direction.

example

scale-deployments.sh

roll-deployments.sh

roll-deployments.sh will roll new versions of all the pods by changing metadata from the deployment without changing the requests or limits. Rolls all deployments in the requested namespace. Use with caution.

example

./roll-deployments.sh -n my-namespace

Templates

The templates folder has various templates for deployments using host and AZ spread, GPU workloads, and other options.

For more Karpenter examples see the karpenter examples.

k8s-random-deploys's People

Contributors

rothgar avatar seifrajhi avatar

Watchers

 avatar

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.