PVCScaler is a command-line tool for scaling pods with Persistent Volume Claims (PVC) in Kubernetes.
- 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.
- Configured Kubernetes cluster
- Properly configured kubeconfig file
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 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")
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")
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")
Contributions are welcome! Please submit a pull request or open an issue for any suggestions or bugs.