Back to Charts

⚠️ Repo Archive Notice

incubator/kube-downscaler/README.md

latest6.7 KB
Original Source

⚠️ Repo Archive Notice

As of Nov 13, 2020, charts in this repo will no longer be updated. For more information, see the Helm Charts Deprecation and Archive Notice, and Update.

kube-downscaler

kube-downscaler Scale down Kubernetes deployments and/or statefulsets during non-work hours.

DEPRECATION NOTICE

This chart is deprecated and no longer supported.

TL;DR:

bash
helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
helm install incubator/kube-downscaler

Introduction

This chart bootstraps an kube-downscaler deployment on a Kubernetes cluster using the Helm package manager.

Enable helm incubator repository

bash
helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator

Installing the Chart

To install the chart with the release name my-release into kube-system:

bash
helm install incubator/kube-downscaler --name my-release --namespace kube-system

The command deploys kube-downscaler on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

console
$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the kube-downscaler chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of replicas to run1
nameHow to name resources created by this chartkube-downscaler
debug.enableDo you want to start the downscaler in debug modefalse
namespace.active_inWhich namespace does the downscaler scans for deployment/statefulsets to downscale ('' equals all)''
intervalInterval between scans, in seconds60
image.repositoryDownscaler container image repositoryhjacobs/kube-downscaler
image.tagDownscaler container image tag20.5.0
image.pullPolicyDownscaler container image pull policyIfNotPresent
nodeSelectorNode labels for downscaler pod assignment{}
tolerationsDownscaler pod toleration for taints[]
affinityDownscaler pod affinity{}
podAnnotationsAnnotations to be added to downscaler pod{}
podLabelsLabels to be added to downscaler pod{}
resourcesDownscaler pod resource requests & limits{}
securityContextSecurityContext to apply to the downscaler pod{}
rbac.createIf true, create & use RBAC resourcestrue
rbac.serviceAccountNameServiceAccount downscaler will use (ignored if rbac.create=true)default
downscaleResourcesResources the downscaler is allowed to manage[deployments, statefulsets, horizontalpodautoscalers, cronjobs]
excludedDeploymentsDeployments to exclude from the downscaler[]
excludedNamespacesNamespaces to exclude from the downscaler[]
extraArgsAdd extra args to docker command[]
priorityClassNameSpecifies the pod's priority class name''

Tip: You can use the default values.yaml

Tip: If you use kube-downscaler as releaseName, the generated pod name will be shorter.(e.g. kube-downscaler-66cc9fb67c-7mg4w instead of my-release-kube-downscaler-66cc9fb67c-7mg4w)