keda
by apecloud
Event-based autoscaler for workloads on Kubernetes
About this chart
KEDA allows for fine grained autoscaling (including to/from zero) for event driven Kubernetes workloads. KEDA serves as a Kubernetes Metrics Server and allows users to define autoscaling rules using a dedicated Kubernetes custom resource definition.
KEDA can run on both the cloud and the edge, integrates natively with Kubernetes components such as the Horizontal Pod Autoscaler, and has no external dependencies.
TL;DR
helm repo add kedacore https://kedacore.github.io/charts
helm repo update
kubectl create namespace keda
helm install keda kedacore/keda --namespace keda --version 2.10.2
Introduction
This chart bootstraps KEDA infrastructure on a Kubernetes cluster using the Helm package manager.
As part of that, it will install all the required Custom Resource Definitions (CRD).
Installing the Chart
To install the chart with the release name keda:
$ kubectl create namespace keda
$ helm install keda kedacore/keda --namespace keda --version 2.10.0
Uninstalling the Chart
To uninstall/delete the keda Helm chart:
helm uninstall keda
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 KEDA chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.keda.repository | Image name of KEDA operator | ghcr.io/kedacore/keda |
image.keda.tag | Image tag of KEDA operator. Optional, given app version of Helm chart is used by default | `` |
image.metricsApiServer.repository | Image name of KEDA Metrics API Server | ghcr.io/kedacore/keda-metrics-apiserver |
image.metricsApiServer.tag | Image tag of KEDA Metrics API Server. Optional, given app version of Helm chart is used by default | `` |
image.webhooks.repository | Image name of KEDA admission-webhooks | ghcr.io/kedacore/keda-admission-webhooks |
image.webhooks.tag | Image tag of KEDA admission-webhooks . Optional, given app version of Helm chart is used by default | `` |
clusterDomain | The cluster domain name | cluster.local |
crds.install | Defines whether the KEDA CRDs have to be installed or not. | true |
watchNamespace | Defines Kubernetes namespaces to watch to scale their workloads. Default watches all namespaces | `` |
operator.name | Name of the KEDA operator | keda-operator |
operator.replicaCount | Capability to configure the number of replicas for KEDA operator.While you can run more replicas of our operator, only one operator instance will be the leader and serving traffic.You can run multiple replicas, but they will not improve the performance of KEDA, it could only reduce downtime during a failover.Learn more in our documentation. | 1 |
operator.affinity | Affinity for pod scheduling (docs) for KEDA operator. Takes precedence over the affinity field | {} |
metricsServer.replicaCount | Capability to configure the number of replicas for KEDA metric server.While you can run more replicas of our metric server, only one instance will used and serve traffic.You can run multiple replicas, but they will not improve the performance of KEDA, it could only reduce downtime during a failover. Learn more in our documentation. | 1 |
metricsServer.dnsPolicy | Defined the DNS policy for the metric server | ClusterFirst |
metricsServer.useHostNetwork | Enable metric server to use host network | false |
metricsServer.affinity | Affinity for pod scheduling (docs) for Metrics API Server. Takes precedence over the affinity field | {} |
webhooks.enable | Enable admission webhooks (this feature option will be removed in v2.12) | true |
webhooks.name | Name of the KEDA admission webhooks | keda-admission-webhooks |
webhooks.replicaCount | Capability to configure the number of replicas for KEDA admission webhooks | 1 |
webhooks.affinity | Affinity for pod scheduling (docs) for KEDA admission webhooks. Takes precedence over the affinity field | {} |
webhooks.failurePolicy | Failure policy to use with KEDA admission webhooks | Ignore |
imagePullSecrets | Name of secret to use to pull images to use to pull Docker images | [] |
additionalLabels | Additional labels to apply to KEDA workloads | {} |
additionalAnnotations | Additional annotations to apply to KEDA workloads | {} |
podAnnotations.keda | Pod annotations for KEDA operator | {} |
podAnnotations.metricsAdapter | Pod annotations for KEDA Metrics Adapter | {} |
podAnnotations.webhooks | Pod annotations for KEDA Admission webhooks | {} |
upgradeStrategy.operator | Capability to configure Deployment upgrade strategy for operator | {} |
upgradeStrategy.metricsApiServer | Capability to configure Deployment upgrade strategy for Metrics Api Server | {} |
upgradeStrategy.webhooks | Capability to configure Deployment upgrade strategy for Admission webhooks | {} |
podDisruptionBudget.operator | Capability to configure Pod Disruption Budget | {} |
podDisruptionBudget.metricServer | Capability to configure Pod Disruption Budget | {} |
podDisruptionBudget.webhooks | Capability to configure Pod Disruption Budget | {} |
podLabels.keda | Pod labels for KEDA operator | {} |
podLabels.metricsAdapter | Pod labels for KEDA Metrics Adapter | {} |
podLabels.webhooks | Pod labels for KEDA Admission webhooks | {} |
rbac.create | Specifies whether RBAC should be used | true |
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated. | keda-operator |
serviceAccount.automountServiceAccountToken | Specifies whether created service account should automount API-Credentials | true |
serviceAccount.annotations | Annotations to add to the service account | {} |
podIdentity.activeDirectory.identity | Identity in Azure Active Directory to use for Azure pod identity | `` |
podIdentity.azureWorkload.clientId | Id of Azure Active Directory Client to use for authentication with Azure Workload Identity. (docs) | `` |
podIdentity.azureWorkload.enabled | Specifies whether Azure Workload Identity is to be enabled or not. (docs) | false |
podIdentity.azureWorkload.tenantId | Id Azure Active Directory Tenant to use for authentication with for Azure Workload Identity. (docs) | `` |
podIdentity.azureWorkload.tokenExpiration | Duration in seconds to automatically expire tokens for the service account. (docs) | 3600 |
podIdentity.aws.irsa.audience | Sets the token audience for IRSA. | sts.amazonaws.com |
podIdentity.aws.irsa.enabled | Specifies whether AWS IAM Roles for Service Accounts (IRSA) is to be enabled or not. | false |
podIdentity.aws.irsa.roleArn | ARN of an IRSA IAM role with a web identity provider to use for authentication via STS. | `` |
podIdentity.aws.irsa.stsRegionalEndpoints | Sets the use of an STS regional endpoint instead of global. Recommended to use regional endpoint in almost all cases. | true |
podIdentity.aws.irsa.tokenExpiration | Duration in seconds to automatically expire tokens for the service account. | 86400 |
grpcTLSCertsSecret | Name of the secret that will be mounted to the /grpccerts path on the Pod to communicate over TLS with external scaler(s) (recommended). | `` |
hashiCorpVaultTLS | Name of the secret that will be mounted to the /vault path on the Pod to communicate over TLS with HashiCorp Vault (recommended). | `` |
logging.operator.level | Logging level for KEDA Operator. Allowed values are 'debug', 'info' & 'error'. | info |
logging.operator.format | Logging format for KEDA Operator. Allowed values are 'console' & 'json'. | console |
logging.operator.timeEncoding | Logging time format for KEDA Operator. Allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'. | rfc3339 |
logging.metricServer.level | Logging level for Metrics Server.Policy to use to pull Docker images. Allowed values are '0' for info, '4' for debug, or an integer value greater than 0, specified as string. You can find all allowed options here. | 0 |
logging.webhooks.level | Logging level for KEDA Admission webhooks. Allowed values are 'debug', 'info' & 'error'. | info |
logging.webhooks.format | Logging format for KEDA Admission webhooks. Allowed values are 'console' & 'json'. | console |
logging.webhooks.timeEncoding | Logging time format for KEDA Admission webhooks. Allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'. | rfc3339 |
securityContext | Security context for all containers (docs) | See below |
securityContext.operator | Security context of the operator container (docs) | See below |
securityContext.metricServer | Security context of the metricServer container ([docs](https://kubernet |
Deploy keda with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keda 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 chartkeda is pinned at v2.10.2 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