30 lines
829 B
Markdown
30 lines
829 B
Markdown
---
|
||
title: "KEDA"
|
||
type: concept
|
||
tags: [Kubernetes, EKS, Auto-Scaling, Event-Driven]
|
||
---
|
||
|
||
## Description
|
||
KEDA(Kubernetes Event-driven Autoscaling)是基于外部事件的 Kubernetes 工作负载扩缩容框架。它使用 ScaledObject CRD 定义扩缩容规则,支持从零副本启动,可发布指标供 HPA 使用。
|
||
|
||
## Mechanism
|
||
- 使用 ScaledObject 自定义资源定义
|
||
- 支持多种外部事件源(消息队列、HTTP API、Azure Blob 等)
|
||
- 可与 HPA 集成提供指标
|
||
- 支持从零副本扩展
|
||
|
||
## Use Cases
|
||
- 基于消息队列深度自动扩缩容
|
||
- 基于 HTTP 请求速率扩缩容
|
||
- 事件驱动的工作负载
|
||
|
||
## Related Concepts
|
||
- [[HPA]]
|
||
- [[Auto-scaling]]
|
||
|
||
## Related Entities
|
||
- [[EKS]]
|
||
|
||
## Connections
|
||
- [[KEDA]] ← integrates_with [[HPA]]
|
||
- [[KEDA]] ← provides_metrics_for [[Auto-scaling]] |