keda-add-ons-http

by Helm

Helm chartv0.16.0App 0.16.0

Event-based autoscaler for HTTP workloads on Kubernetes

About this chart

The KEDA HTTP Add On allows Kubernetes users to automatically scale their HTTP servers up and down (including to/from zero) based on incoming HTTP traffic. Please see our use cases document to learn more about how and why you would use this project.

🚧 Alpha - Not for production 🚧
âš  The HTTP add-on is in experimental stage and not ready for production. It is provided as-is without support.

This codebase moves very quickly. We can't currently guarantee that any part of it will work. Neither the complete feature set nor known issues may be fully documented. Similarly, issues filed against this project may not be responded to quickly or at all. We will release and announce a beta release of this project, and after we do that, we will document and respond to issues properly.

Walkthrough

Although this is an alpha release project right now, we have prepared a walkthrough document that with instructions on getting started for basic usage.

See that document at docs/walkthrough.md

Design

The HTTP add-on is composed of multiple mostly independent components. This design was chosen to allow for highly customizable installations while allowing us to ship reasonable defaults.

  • We have written a complete design document. Please see it at docs/design.md.
  • For more context on the design, please see our scope document.
  • If you have further questions about the project, please see our FAQ document.

Installation

Please see the complete installation instructions.

Contributing

Please see the contributing documentation for all instructions.


We are a Cloud Native Computing Foundation (CNCF) graduated project.


TL;DR

helm repo add kedacore https://kedacore.github.io/charts
helm repo update

helm install http-add-on kedacore/keda-add-ons-http --create-namespace --namespace keda --version 0.16.0

Introduction

This chart bootstraps KEDA HTTP Add-on 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 http-add-on, please read the install instructions on the official repository to get started:

$ helm install http-add-on kedacore/keda-add-ons-http --namespace keda

Important: This chart needs KEDA installed in your cluster to work properly.

Uninstalling the Chart

To uninstall/delete the http-add-on Helm chart:

helm uninstall http-add-on

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 HTTP Add-On chart and their default values.

General parameters

ParameterTypeDefaultDescription
additionalLabelsobject{}Additional labels to be applied to installed resources. Note that not all resources will receive these labels.
crds.installbooltrueWhether to install the HTTPScaledObject and InterceptorRoute CustomResourceDefinitions
images.interceptorstring"ghcr.io/kedacore/http-add-on-interceptor"Image name for the interceptor image component
images.operatorstring"ghcr.io/kedacore/http-add-on-operator"Image name for the operator image component
images.scalerstring"ghcr.io/kedacore/http-add-on-scaler"Image name for the scaler image component
images.tagstring""Image tag for the http add on. This tag is applied to the images listed in images.operator, images.interceptor, and images.scaler. Optional, given app version of Helm chart is used by default
logging.interceptor.formatstring"console"Logging format for KEDA http-add-on Interceptor. allowed values: json or console
logging.interceptor.levelstring"info"Logging level for KEDA http-add-on Interceptor. allowed values: debug, info, error, or an integer value greater than 0, specified as string
logging.interceptor.stackTracesEnabledboolfalseDisplay stack traces in the logs
logging.interceptor.timeEncodingstring"rfc3339"Logging time encoding for KEDA http-add-on Interceptor. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano
logging.operator.formatstring"console"Logging format for KEDA http-add-on operator. allowed values: json or console
logging.operator.levelstring"info"Logging level for KEDA http-add-on operator. allowed values: debug, info, error, or an integer value greater than 0, specified as string
logging.operator.stackTracesEnabledboolfalseDisplay stack traces in the logs
logging.operator.timeEncodingstring"rfc3339"Logging time encoding for KEDA http-add-on operator. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano
logging.scaler.formatstring"console"Logging format for KEDA http-add-on Scaler. allowed values: json or console
logging.scaler.levelstring"info"Logging level for KEDA http-add-on Scaler. allowed values: debug, info, error, or an integer value greater than 0, specified as string
logging.scaler.stackTracesEnabledboolfalseDisplay stack traces in the logs
logging.scaler.timeEncodingstring"rfc3339"Logging time encoding for KEDA http-add-on Scaler. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano
podSecurityContextobjectSee below[Pod security context] for all pods
profiling.interceptor.enabledboolfalseEnable profiling for KEDA http-add-on Interceptor
profiling.interceptor.portint8086Expose profiling on a specific port
profiling.operator.enabledboolfalseEnable profiling for KEDA http-add-on Operator
profiling.operator.portint8085Expose profiling on a specific port
profiling.scaler.enabledboolfalseEnable profiling for KEDA http-add-on Scaler
profiling.scaler.portint8087Expose profiling on a specific port
rbac.aggregateToDefaultRolesboolfalseInstall aggregate roles for edit and view
securityContextobjectSee below[Security context] for all containers

Operator

ParameterTypeDefaultDescription
operator.affinityobject{}Affinity for pod scheduling (docs)
operator.extraEnvsobject{}Extra environment variables to set (key-value map with "ENV name":"value")
operator.imagePullSecretslist[]The image pull secrets for the operator component
operator.metrics.authbooltrueEnable authentication and authorization for the metrics endpoint
operator.metrics.certDirstring""Directory containing TLS certificates (tls.crt/tls.key). If empty, self-signed certs are generated.
operator.metrics.securebooltrueEnable HTTPS for the metrics endpoint
operator.nodeSelectorobject{}Node selector for pod scheduling (docs)
operator.podAnnotationsobject{}Annotations to be added to the operator pods
operator.portint8443The port for the operator main server to run on
operator.pullPolicystring"Always"The image pull policy for the operator component
operator.replicasint1Number of replicas, operator k8s resources will not be installed if this is set to 0
operator.resources.limitsobject{"cpu":0.5,"memory":"64Mi"}The CPU/memory resource limit for the operator component
operator.resources.requestsobject{"cpu":"250m","memory":"20Mi"}The CPU/memory resource request for the operator component
operator.tolerationslist[]Tolerations for pod scheduling (docs)
operator.topologySpreadConstraintslist[]Topology spread constraints (docs)
operator.watchNamespacestring""The namespace to watch for new HTTPScaledObjects. Leave this blank (i.e. "") to tell the operator to watch all namespaces.

Scaler

ParameterTypeDefaultDescription
scaler.affinityobject{}Affinity for pod scheduling (docs)
scaler.extraEnvsobject{}Extra environment variables to set (key-value map with "ENV name":"value")
scaler.grpcPortint9090The port for the scaler's gRPC server. This is the server that KEDA will send scaling requests to.
scaler.imagePullSecretslist[]The image pull secrets for the scaler component
scaler.metrics.otlp.enabledboolfalseEnable the OTLP HTTP metrics exporter for the scaler
scaler.metrics.prometheus.enabledbooltrueEnable the Prometheus metrics exporter for the scaler
scaler.metrics.prometheus.portint2223Port for the scaler's Prometheus /metrics endpoint
scaler.nodeSelectorobject{}Node selector for pod scheduling (docs)
scaler.pendingRequestsInterceptorint200The number of "target requests" that the external scaler will report to KEDA for the interceptor's scaling metrics. See the KEDA external scaler documentation for details on target requests.
scaler.podAnnotationsobject{}Annotations to be added to the scaler pods
scaler.pullPolicystring"Always"The image pull policy for the scaler component
scaler.replicasint3Number of replicas
scaler.resources.limits.cpufloat0.5
scaler.resources.limits.memorystring"64Mi"
scaler.resources.requests.cpustring"250m"
scaler.resources.requests.memorystring"20Mi"
scaler.servicestring"external-scaler"The name of the Kubernetes Service for the scaler component
scaler.streamIntervalint200Interval in ms for communicating IsActive to KEDA
scaler.tolerationslist[]Tolerations for pod scheduling (docs)
scaler.topologySpreadConstraintslist[]Topology spread constraints (docs)
scaler.tracing.enabledboolfalseEnable OTLP tracing for the scaler
scaler.tracing.protocolstring"console"Tracing exporter protocol (console, http/protobuf, or grpc)

Interceptor

ParameterTypeDefaultDescription
interceptor.admin.appProtocolstring""The appProtocol for the interceptor's admin service port
interceptor.admin.portint9090The port for the interceptor's admin server to run on
interceptor.admin.servicestring"interceptor-admin"The name of the Kubernetes Service for the interceptor's admin service
interceptor.affinityobject{}Affinity for pod scheduling (docs)
interceptor.coldStart.maxPendingRequestsint0Default limit on requests held per route while its backend has no ready endpoints, e.g. during scale-from-zero. Routes override it via coldStart.maxPendingRequests. 0 means unlimited. The limit applies per interceptor replica.
interceptor.directPodRoutingbooltrueRoute requests directly to a ready pod IP instead of the Service ClusterIP, bypassing kube-proxy and other Service-layer features (NetworkPolicy, session affinity, topology-aware routing). Set to false to keep Service-based routing.
interceptor.drainTimeoutstring"30s"Maximum time to wait for in-flight requests (including WebSocket connections) to complete after the proxy listener closes. 0 waits indefinitely (bounded only by terminationGracePeriodSeconds).
interceptor.extraEnvsobject{}Extra environment variables to set (key-value m

Deploy keda-add-ons-http with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keda-add-ons-http 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-add-ons-http is pinned at v0.16.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