Docker image with a script to automatically resize PersistentVolumes in Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Fábio Kaiser Rauber 44adb83ff4 Added Helm chart to README 3 years ago
.drone.yml Update drone config 3 years ago
.gitignore Initial commit 3 years ago
Dockerfile Update prereqs to include bc command 3 years ago
LICENSE Initial commit 3 years ago
README.md Added Helm chart to README 3 years ago
check_full_pvs.sh Fix issue when dealing with statefulsets 3 years ago

README.md

docker-pv-resizer

Build Status

Docker image with a script to automatically resize PersistentVolumes in Kubernetes. It leverages kubectl df-pv plugin to get kubelet metrics for each volume.

Requires kubectl with a configuration file in ~/.kube/config and df-pv krew plugin.

Usage:
  ./check_full_pvs.sh [-t threshold] [-f]"
  
Parameters:
  -t (optional) : Threshold to use for near full PV evaluation (in %). Defaults to 85%.
  -f (optional) : Fix near full PVs (resize them). Defaults to false.
  -i (optional) : Percentage of PV increase when resizing. Defaults to 50%.

Helm Chart

There is a Helm Chart available to install docker-pv-resizer in the cluster. See https://git.interlegis.leg.br/SEIT/rancher-charts/src/branch/master/charts/pv-resizer/v0.1.0