keda-add-ons-http
by Helm
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
| Parameter | Type | Default | Description |
|---|---|---|---|
additionalLabels | object | {} | Additional labels to be applied to installed resources. Note that not all resources will receive these labels. |
crds.install | bool | true | Whether to install the HTTPScaledObject and InterceptorRoute CustomResourceDefinitions |
images.interceptor | string | "ghcr.io/kedacore/http-add-on-interceptor" | Image name for the interceptor image component |
images.operator | string | "ghcr.io/kedacore/http-add-on-operator" | Image name for the operator image component |
images.scaler | string | "ghcr.io/kedacore/http-add-on-scaler" | Image name for the scaler image component |
images.tag | string | "" | 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.format | string | "console" | Logging format for KEDA http-add-on Interceptor. allowed values: json or console |
logging.interceptor.level | string | "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.stackTracesEnabled | bool | false | Display stack traces in the logs |
logging.interceptor.timeEncoding | string | "rfc3339" | Logging time encoding for KEDA http-add-on Interceptor. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano |
logging.operator.format | string | "console" | Logging format for KEDA http-add-on operator. allowed values: json or console |
logging.operator.level | string | "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.stackTracesEnabled | bool | false | Display stack traces in the logs |
logging.operator.timeEncoding | string | "rfc3339" | Logging time encoding for KEDA http-add-on operator. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano |
logging.scaler.format | string | "console" | Logging format for KEDA http-add-on Scaler. allowed values: json or console |
logging.scaler.level | string | "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.stackTracesEnabled | bool | false | Display stack traces in the logs |
logging.scaler.timeEncoding | string | "rfc3339" | Logging time encoding for KEDA http-add-on Scaler. allowed values are epoch, millis, nano, iso8601, rfc3339 or rfc3339nano |
podSecurityContext | object | See below | [Pod security context] for all pods |
profiling.interceptor.enabled | bool | false | Enable profiling for KEDA http-add-on Interceptor |
profiling.interceptor.port | int | 8086 | Expose profiling on a specific port |
profiling.operator.enabled | bool | false | Enable profiling for KEDA http-add-on Operator |
profiling.operator.port | int | 8085 | Expose profiling on a specific port |
profiling.scaler.enabled | bool | false | Enable profiling for KEDA http-add-on Scaler |
profiling.scaler.port | int | 8087 | Expose profiling on a specific port |
rbac.aggregateToDefaultRoles | bool | false | Install aggregate roles for edit and view |
securityContext | object | See below | [Security context] for all containers |
Operator
| Parameter | Type | Default | Description |
|---|---|---|---|
operator.affinity | object | {} | Affinity for pod scheduling (docs) |
operator.extraEnvs | object | {} | Extra environment variables to set (key-value map with "ENV name":"value") |
operator.imagePullSecrets | list | [] | The image pull secrets for the operator component |
operator.metrics.auth | bool | true | Enable authentication and authorization for the metrics endpoint |
operator.metrics.certDir | string | "" | Directory containing TLS certificates (tls.crt/tls.key). If empty, self-signed certs are generated. |
operator.metrics.secure | bool | true | Enable HTTPS for the metrics endpoint |
operator.nodeSelector | object | {} | Node selector for pod scheduling (docs) |
operator.podAnnotations | object | {} | Annotations to be added to the operator pods |
operator.port | int | 8443 | The port for the operator main server to run on |
operator.pullPolicy | string | "Always" | The image pull policy for the operator component |
operator.replicas | int | 1 | Number of replicas, operator k8s resources will not be installed if this is set to 0 |
operator.resources.limits | object | {"cpu":0.5,"memory":"64Mi"} | The CPU/memory resource limit for the operator component |
operator.resources.requests | object | {"cpu":"250m","memory":"20Mi"} | The CPU/memory resource request for the operator component |
operator.tolerations | list | [] | Tolerations for pod scheduling (docs) |
operator.topologySpreadConstraints | list | [] | Topology spread constraints (docs) |
operator.watchNamespace | string | "" | The namespace to watch for new HTTPScaledObjects. Leave this blank (i.e. "") to tell the operator to watch all namespaces. |
Scaler
| Parameter | Type | Default | Description |
|---|---|---|---|
scaler.affinity | object | {} | Affinity for pod scheduling (docs) |
scaler.extraEnvs | object | {} | Extra environment variables to set (key-value map with "ENV name":"value") |
scaler.grpcPort | int | 9090 | The port for the scaler's gRPC server. This is the server that KEDA will send scaling requests to. |
scaler.imagePullSecrets | list | [] | The image pull secrets for the scaler component |
scaler.metrics.otlp.enabled | bool | false | Enable the OTLP HTTP metrics exporter for the scaler |
scaler.metrics.prometheus.enabled | bool | true | Enable the Prometheus metrics exporter for the scaler |
scaler.metrics.prometheus.port | int | 2223 | Port for the scaler's Prometheus /metrics endpoint |
scaler.nodeSelector | object | {} | Node selector for pod scheduling (docs) |
scaler.pendingRequestsInterceptor | int | 200 | The 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.podAnnotations | object | {} | Annotations to be added to the scaler pods |
scaler.pullPolicy | string | "Always" | The image pull policy for the scaler component |
scaler.replicas | int | 3 | Number of replicas |
scaler.resources.limits.cpu | float | 0.5 | |
scaler.resources.limits.memory | string | "64Mi" | |
scaler.resources.requests.cpu | string | "250m" | |
scaler.resources.requests.memory | string | "20Mi" | |
scaler.service | string | "external-scaler" | The name of the Kubernetes Service for the scaler component |
scaler.streamInterval | int | 200 | Interval in ms for communicating IsActive to KEDA |
scaler.tolerations | list | [] | Tolerations for pod scheduling (docs) |
scaler.topologySpreadConstraints | list | [] | Topology spread constraints (docs) |
scaler.tracing.enabled | bool | false | Enable OTLP tracing for the scaler |
scaler.tracing.protocol | string | "console" | Tracing exporter protocol (console, http/protobuf, or grpc) |
Interceptor
| Parameter | Type | Default | Description |
|---|---|---|---|
interceptor.admin.appProtocol | string | "" | The appProtocol for the interceptor's admin service port |
interceptor.admin.port | int | 9090 | The port for the interceptor's admin server to run on |
interceptor.admin.service | string | "interceptor-admin" | The name of the Kubernetes Service for the interceptor's admin service |
interceptor.affinity | object | {} | Affinity for pod scheduling (docs) |
interceptor.coldStart.maxPendingRequests | int | 0 | Default 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.directPodRouting | bool | true | Route 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.drainTimeout | string | "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.extraEnvs | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkeda-add-ons-http is pinned at v0.16.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