Skip to content

Scale your k8s deployments and Stateful Sets for development usage

License

Notifications You must be signed in to change notification settings

jdewinne/k8s-dev-scaler

Repository files navigation

CI Security Release k8s-dev-scaler codecov License: MIT GitHub release Downloads

About

When developing on a local k8s instance, often you have to juggle with memory, cpu, ... And when developing with multiple branches, you sometimes have your app installed in multiple namespaces. Each branch, having it's own namespace maybe...

So in order to reduce your resource consumption by your k8s dev cluster, this tool allows to downscale all deployments and statefulsets to zero. It also allows to scale them all back up. Behind the scenes it places an annotation called k8s.dev.scaler/desired.replicas that keeps track of the desired number if replicas.

Installation

  • Linux: Download from Releases
  • Linux, Mac: Install using go get https://github.com/jdewinne/k8s-dev-scaler

Usage

Scale down/up all resources in a k8s namespace

Usage of k8s-dev-scaler:
  -context string
        (optional) k8s context to be used, current context if not provided.
  -namespace string
        (required) k8s namespace to be used, current namespace if not provided.
  -scale string
        (required) Can be one of [up|down].

About

Scale your k8s deployments and Stateful Sets for development usage

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published