Skip to content

laghoule/pvcscaler

Repository files navigation

PVCScaler

Go Report Card Coverage Security Rating Vulnerabilities

PVCScaler is a command-line tool for scaling pods with Persistent Volume Claims (PVC) in Kubernetes.

Features

  • List workload with PVC of the specified storage class.
  • Scale up pods defined in the input state file.
  • Scale down pods with PVCs, in specified namespaces and storage class with optional output state file.

Prerequisites

  • Configured Kubernetes cluster
  • Properly configured kubeconfig file

Usage

Basic Commands

A Fast and and easy way to scale down and up pods with pvc.

Usage:
  pvcscaler [flags]
  pvcscaler [command]

Available Commands:
  down        Scale down
  help        Help about any command
  up          Scale up
  version     Show version

Flags:
  -d, --dry-run             dry run mode
  -h, --help                help for pvcscaler
  -k, --kubeconfig string   path to kubeconfig (default "/home/user/.kube/config")

List

List workloads with pvc in the specified storage class.

Usage:
  pvcscaler list [flags]

Flags:
  -h, --help                    help for list
  -n, --namespace stringArray   namespace to use (default [all])
  -s, --storageclass string     storage class to target (default "default")

Global Flags:
  -d, --dry-run             dry run mode
  -k, --kubeconfig string   path to kubeconfig (default "/home/pgauthier/.kube/config")

Down

Scale down pods with pvc.

Usage:
  pvcscaler down [flags]

Flags:
  -h, --help                    help for down
  -n, --namespace stringArray   namespace to use (default [all])
  -o, --outputFile string       pvscaler state file
  -s, --storageclass string     storage class to target (default "default")

Global Flags:
  -d, --dry-run             dry run mode
  -k, --kubeconfig string   path to kubeconfig (default "/home/user/.kube/config")

Up

Scale up pods with pvc.

Usage:
  pvcscaler up [flags]

Flags:
  -h, --help               help for up
  -i, --inputFile string   pvscaler state file

Global Flags:
  -d, --dry-run             dry run mode
  -k, --kubeconfig string   path to kubeconfig (default "/home/user/.kube/config")

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any suggestions or bugs.

About

Scale down & up Kubernetes workload with PVC

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages