pvc-autoresizer

by KubeSphere

Helm chartv0.1.0App v0.1Verified publisher

Auto-resize PersistentVolumeClaim objects based on Prometheus metrics.

About this chart

pvc-autoresizer Helm Chart

How to use pvc-autoresizer Helm repository

You need to add this repository to your Helm repositories:

helm repo add main https://charts.kubesphere.io/main
helm repo update

Quick start

Installing the Chart

To install the chart with the release name pvc-autoresizer using a dedicated namespace(recommended):

helm install --create-namespace --namespace pvc-autoresizer pvc-autoresizer main/pvc-autoresizer

Specify parameters using --set key=value[,key=value] argument to helm install.

Alternatively a YAML file that specifies the values for the parameters can be provided like this:

helm upgrade --create-namespace --namespace pvc-autoresizer -i pvc-autoresizer -f values.yaml pvc-autoresizer/pvc-autoresizer

Values

KeyTypeDefaultDescription
controller.args.additionalArgslist[]Specify additional args.
controller.args.intervalstring"10s"Specify interval to monitor pvc capacity. Used as "--interval" option
controller.args.prometheusURLstring"http://prometheus-prometheus-oper-prometheus.prometheus.svc:9090"Specify Prometheus URL to query volume stats. Used as "--prometheus-url" option
controller.nodeSelectorobject{}Map of key-value pairs for scheduling pods on specific nodes.
controller.replicasint1Specify the number of replicas of the controller Pod.
controller.resourcesobject{"requests":{"cpu":"100m","memory":"20Mi"}}Specify resources.
controller.terminationGracePeriodSecondsstringnilSpecify terminationGracePeriodSeconds.
controller.tolerationsobject{}Ensure pods are not scheduled on inappropriate nodes.
image.pullPolicystringnilpvc-autoresizer image pullPolicy.
image.repositorystring"f10atin9/pvc-autoresizerpvc-autoresizer image repository to use.
image.tagstring{{ .Chart.AppVersion }}pvc-autoresizer image tag to use.

Generate Manifests

You can use the helm template command to render manifests.

helm template --namespace pvc-autoresizer pvc-autoresizer main/pvc-autoresizer

Deploy pvc-autoresizer with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pvc-autoresizer on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpvc-autoresizer is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply