Menu

Tree [dc9ca9] master /
 History

HTTPS access


File Date Author Commit
 .github 2020-10-17 Abhishek Dubey Abhishek Dubey [5c6958] Update linter.yml
 api 2020-10-17 iamabhishek-dubey iamabhishek-dubey [011212] Removed extra code and optimized code
 deploy 2020-10-06 iamabhishek-dubey iamabhishek-dubey [26f896] Updated helm chart
 logger 2020-10-17 iamabhishek-dubey iamabhishek-dubey [011212] Removed extra code and optimized code
 pkg 2020-10-17 iamabhishek-dubey iamabhishek-dubey [011212] Removed extra code and optimized code
 scripts 2020-02-27 iamabhishek-dubey iamabhishek-dubey [50f504] Added script for k8s validation
 static 2020-06-03 iamabhishek-dubey iamabhishek-dubey [2cf1fa] Changed architecture diagram
 utils 2020-10-17 iamabhishek-dubey iamabhishek-dubey [011212] Removed extra code and optimized code
 CHANGELOG.md 2020-02-23 iamabhishek-dubey iamabhishek-dubey [7ff72e] Added release badge and added changelog
 DEVELOPMENT.md 2020-02-24 iamabhishek-dubey iamabhishek-dubey [eac8f2] Added development information
 Dockerfile 2020-02-21 iamabhishek-dubey iamabhishek-dubey [0c2c73] Added first release of dynamic pv scaler
 LICENSE 2020-02-22 Abhishek Dubey Abhishek Dubey [7964d7] Create LICENSE
 Makefile 2020-02-21 iamabhishek-dubey iamabhishek-dubey [0c2c73] Added first release of dynamic pv scaler
 README.md 2020-10-15 iamabhishek-dubey iamabhishek-dubey [877068] Fixed ct.yaml
 config.yaml 2020-02-21 iamabhishek-dubey iamabhishek-dubey [0c2c73] Added first release of dynamic pv scaler
 ct.yaml 2020-10-15 iamabhishek-dubey iamabhishek-dubey [fafa0f] Fixed ct.yaml
 go.mod 2020-02-21 iamabhishek-dubey iamabhishek-dubey [0c2c73] Added first release of dynamic pv scaler
 go.sum 2020-02-21 iamabhishek-dubey iamabhishek-dubey [0c2c73] Added first release of dynamic pv scaler
 main.go 2020-02-25 Abhishek Dubey Abhishek Dubey [4f6e8d] Updated go code formatting

Read Me

GitHub Super-Linter
Go Report Card
Maintainability
Docker Repository on Quay
Apache License
GitHub release (latest by date)

Volume Booster

A golang based Kubernetes application which has been created to overcome the scaling issue of Persistent Volume in Kubernetes. This can scale the Persistent Volume on the basis of threshold which you have set.

Getting Started

Architecture

Pre-requisites

Sorry none of these pre-requisites can be compromised. So you guys have to meet these requirements 🙂

  • Kubernetes cluster version should be greater than 1.11+
  • Prometheus should be have the information of Persistent Volume
  • In storageclass, allowVolumeExpansion flag should be true

Example:-

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: standard
provisioner: kubernetes.io/aws-ebs
parameters:
  type: gp2
reclaimPolicy: Retain
allowVolumeExpansion: true # This should be true for every storage class
mountOptions:
  - debug
volumeBindingMode: Immediate

That's it

Configuration

We are using helm to maintain the deployment and release in Kubernetes cluster. Hit Me. But for configuration part this application accepts a yaml file .config.yaml:

---
- namespace: database
  scale_percentage: 50
  threshold_percentage: 80
  pvc_name: data-mysql-0

Configuration file overview:-

Field Default Value Possible Values Description
namespace - Any valid k8s namespace Persistent Volume's namespace which needs to be watched
scale_percentage - Any integer How much percent you want to scale your pv
threshold_percentage - Any integer The target percentage after which you want to scale the pv
pvc_name - Any valid k8s pvc name Name of the pvc which you want to scale

Make sure you have updated the configuration in values.yaml.

Installation

Simply use the helm chart to install it on your flavor of Kubernetes.

# Deploy the PV Scaler
helm upgrade dynamic-pv-scaler ./deploy/helm --install --namespace dynamic-pv-scaler

Verify the installation

helm test dynamic-pv-scaler --namespace dynamic-pv-scaler
kubectl get pods -n dynamic-pv-scaler

Logging

The application's logging interface is designed to print logs in JSON stdout. Example logs:-

Development

Please see our development documentation for details.

Release

Please see our release documentation for details.

Contact

If you have any suggestion or query. Contact us at

opensource@opstree.com