kubedb-autoscaler
KubeDB Autoscaler by AppsCode - Autoscale KubeDB operated Databases
About this chart
KubeDB Autoscaler
KubeDB Autoscaler by AppsCode - Autoscale KubeDB operated Databases
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/kubedb-autoscaler --version=v0.54.0
$ helm upgrade -i kubedb-autoscaler appscode/kubedb-autoscaler -n kubedb --create-namespace --version=v0.54.0
Introduction
This chart deploys a KubeDB Autoscaler operator on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.12+
Installing the Chart
To install/upgrade the chart with the release name kubedb-autoscaler:
$ helm upgrade -i kubedb-autoscaler appscode/kubedb-autoscaler -n kubedb --create-namespace --version=v0.54.0
The command deploys a KubeDB Autoscaler operator 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 the kubedb-autoscaler:
$ helm uninstall kubedb-autoscaler -n kubedb
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the kubedb-autoscaler chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| nameOverride | Overrides name template | "" |
| fullnameOverride | Overrides fullname template | "" |
| replicaCount | Number of KubeDB operator replicas to create (only 1 is supported) | 1 |
| license | License for the product. Get a license by following the steps from here. Example: helm install appscode/kubedb-autoscaler \ --set-file license=/path/to/license/file or helm install appscode/kubedb-autoscaler \ --set license=<license file content> | "" |
| licenseSecretName | Name of Secret with the license as key.txt key | "" |
| updateInterval | Interval between each autoscaler loop | 1m |
| registryFQDN | Docker registry fqdn used to pull KubeDB related images. Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | ghcr.io |
| operator.registry | Docker registry used to pull KubeDB enterprise operator image | kubedb |
| operator.repository | KubeDB enterprise operator container image | kubedb-autoscaler |
| operator.tag | KubeDB enterprise operator container image tag | "" |
| operator.securityContext | Security options this container should run with | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}} |
| operator.resources | Compute Resources required by this container | {} |
| waitfor.registry | Docker registry used to pull KubeDB enterprise kubectl-nonroot image | appscode |
| waitfor.repository | KubeDB enterprise kubectl-nonroot container image | kubectl-nonroot |
| waitfor.tag | KubeDB enterprise kubectl-nonroot container image tag | "1.34" |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. Example: helm template charts/kubedb-autoscaler \ --set imagePullSecrets[0].name=sec0 \ --set imagePullSecrets[1].name=sec1 | [] |
| imagePullPolicy | Container image pull policy | IfNotPresent |
| criticalAddon | If true, installs KubeDB operator as critical addon | false |
| logLevel | Log level for operator | <cod |
Deploy kubedb-autoscaler with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubedb-autoscaler 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubedb-autoscaler is pinned at v0.54.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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