keda

by apecloud

Helm chartv2.10.2App 2.10.1Verified publisher

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.

ParameterDescriptionDefault
image.keda.repositoryImage name of KEDA operatorghcr.io/kedacore/keda
image.keda.tagImage tag of KEDA operator. Optional, given app version of Helm chart is used by default``
image.metricsApiServer.repositoryImage name of KEDA Metrics API Serverghcr.io/kedacore/keda-metrics-apiserver
image.metricsApiServer.tagImage tag of KEDA Metrics API Server. Optional, given app version of Helm chart is used by default``
image.webhooks.repositoryImage name of KEDA admission-webhooksghcr.io/kedacore/keda-admission-webhooks
image.webhooks.tagImage tag of KEDA admission-webhooks . Optional, given app version of Helm chart is used by default``
clusterDomainThe cluster domain namecluster.local
crds.installDefines whether the KEDA CRDs have to be installed or not.true
watchNamespaceDefines Kubernetes namespaces to watch to scale their workloads. Default watches all namespaces``
operator.nameName of the KEDA operatorkeda-operator
operator.replicaCountCapability 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.affinityAffinity for pod scheduling (docs) for KEDA operator. Takes precedence over the affinity field{}
metricsServer.replicaCountCapability 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.dnsPolicyDefined the DNS policy for the metric serverClusterFirst
metricsServer.useHostNetworkEnable metric server to use host networkfalse
metricsServer.affinityAffinity for pod scheduling (docs) for Metrics API Server. Takes precedence over the affinity field{}
webhooks.enableEnable admission webhooks (this feature option will be removed in v2.12)true
webhooks.nameName of the KEDA admission webhookskeda-admission-webhooks
webhooks.replicaCountCapability to configure the number of replicas for KEDA admission webhooks1
webhooks.affinityAffinity for pod scheduling (docs) for KEDA admission webhooks. Takes precedence over the affinity field{}
webhooks.failurePolicyFailure policy to use with KEDA admission webhooksIgnore
imagePullSecretsName of secret to use to pull images to use to pull Docker images[]
additionalLabelsAdditional labels to apply to KEDA workloads{}
additionalAnnotationsAdditional annotations to apply to KEDA workloads{}
podAnnotations.kedaPod annotations for KEDA operator{}
podAnnotations.metricsAdapterPod annotations for KEDA Metrics Adapter{}
podAnnotations.webhooksPod annotations for KEDA Admission webhooks{}
upgradeStrategy.operatorCapability to configure Deployment upgrade strategy for operator{}
upgradeStrategy.metricsApiServerCapability to configure Deployment upgrade strategy for Metrics Api Server{}
upgradeStrategy.webhooksCapability to configure Deployment upgrade strategy for Admission webhooks{}
podDisruptionBudget.operatorCapability to configure Pod Disruption Budget{}
podDisruptionBudget.metricServerCapability to configure Pod Disruption Budget{}
podDisruptionBudget.webhooksCapability to configure Pod Disruption Budget{}
podLabels.kedaPod labels for KEDA operator{}
podLabels.metricsAdapterPod labels for KEDA Metrics Adapter{}
podLabels.webhooksPod labels for KEDA Admission webhooks{}
rbac.createSpecifies whether RBAC should be usedtrue
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated.keda-operator
serviceAccount.automountServiceAccountTokenSpecifies whether created service account should automount API-Credentialstrue
serviceAccount.annotationsAnnotations to add to the service account{}
podIdentity.activeDirectory.identityIdentity in Azure Active Directory to use for Azure pod identity``
podIdentity.azureWorkload.clientIdId of Azure Active Directory Client to use for authentication with Azure Workload Identity. (docs)``
podIdentity.azureWorkload.enabledSpecifies whether Azure Workload Identity is to be enabled or not. (docs)false
podIdentity.azureWorkload.tenantIdId Azure Active Directory Tenant to use for authentication with for Azure Workload Identity. (docs)``
podIdentity.azureWorkload.tokenExpirationDuration in seconds to automatically expire tokens for the service account. (docs)3600
podIdentity.aws.irsa.audienceSets the token audience for IRSA.sts.amazonaws.com
podIdentity.aws.irsa.enabledSpecifies whether AWS IAM Roles for Service Accounts (IRSA) is to be enabled or not.false
podIdentity.aws.irsa.roleArnARN of an IRSA IAM role with a web identity provider to use for authentication via STS.``
podIdentity.aws.irsa.stsRegionalEndpointsSets the use of an STS regional endpoint instead of global. Recommended to use regional endpoint in almost all cases.true
podIdentity.aws.irsa.tokenExpirationDuration in seconds to automatically expire tokens for the service account.86400
grpcTLSCertsSecretName of the secret that will be mounted to the /grpccerts path on the Pod to communicate over TLS with external scaler(s) (recommended).``
hashiCorpVaultTLSName of the secret that will be mounted to the /vault path on the Pod to communicate over TLS with HashiCorp Vault (recommended).``
logging.operator.levelLogging level for KEDA Operator. Allowed values are 'debug', 'info' & 'error'.info
logging.operator.formatLogging format for KEDA Operator. Allowed values are 'console' & 'json'.console
logging.operator.timeEncodingLogging time format for KEDA Operator. Allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'.rfc3339
logging.metricServer.levelLogging 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.levelLogging level for KEDA Admission webhooks. Allowed values are 'debug', 'info' & 'error'.info
logging.webhooks.formatLogging format for KEDA Admission webhooks. Allowed values are 'console' & 'json'.console
logging.webhooks.timeEncodingLogging time format for KEDA Admission webhooks. Allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'.rfc3339
securityContextSecurity context for all containers (docs)See below
securityContext.operatorSecurity context of the operator container (docs)See below
securityContext.metricServerSecurity 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkeda is pinned at v2.10.2 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