Categorygithub.com/jadolg/szero
repositorypackage
1.6.8
Repository: https://github.com/jadolg/szero.git
Documentation: pkg.go.dev

# README

Temporarily scale down all deployments in a namespace

What it does

Downscale all deployments in a namespace to 0 replicas and back to their previous state. Useful when you need to tear everything down and bring it back in a namespace.

Install

brew tap jadolg/homebrew-tap
brew install szero

Usage

Downscale all deployments in a namespace to 0 replicas:

szero down -n <namespace> -n <another_namespace>

Upscale all deployments in a namespace to their previous state:

szero up -n <namespace> -n <another_namespace>

Restart all deployments in a namespace

szero restart -n <namespace> -n <another_namespace>

Use a different kubeconfig file

szero down -n <namespace> --kubeconfig <path_to_kubeconfig>

Use a different context

szero down -n <namespace> --context <context_name>

Completions

Command line completions are available under the completions subcommand. For example, to enable bash completions, run:

source <(szero completion bash)

k9s plugins

Using k9s? You can use szero from within k9s as a plugin. To install copy the contents of the k9s-plugins.yaml file into your plugins file.