# KEDA HTTP Add-on 配置 # 基于 HTTPRoute: dstereox-public (namespace: bj2-dcloud) # 对应服务: dstereox-svc:80 # 请求超时: 3600s (1小时) # 基础配置 namespace: keda nameOverride: keda-http-add-on # 核心:启用 Gateway API 支持(使用 HTTPRoute 必须开启) gatewayApi: enabled: true allowCrossNamespace: true # 支持跨命名空间的 Gateway/HTTPRoute 引用 # 关闭 Ingress 支持(仅使用 Gateway API) ingress: enabled: false # Interceptor 配置 - 拦截和代理 HTTP 请求 interceptor: replicaCount: 1 # 生产环境建议至少 2 副本,避免单点故障 # 资源配置 resources: limits: cpu: 1000m # 根据流量调整 memory: 1Gi requests: cpu: 500m memory: 512Mi # 代理超时设置 - 匹配 HTTPRoute 的 3600s 超时 proxy: timeout: 3600s # 就绪和存活探针配置 livenessProbe: initialDelaySeconds: 10 periodSeconds: 10 readinessProbe: initialDelaySeconds: 5 periodSeconds: 5 # Operator 配置 - 监听和管理 HTTPScaledObject 资源 operator: replicaCount: 1 # 高可用部署 # 监听的命名空间(与 HTTPRoute 所在命名空间一致) watchedNamespaces: ["bj2-dcloud"] # 资源配置 resources: limits: cpu: 500m memory: 512Mi requests: cpu: 200m memory: 256Mi # Scaler 配置 - 处理扩缩容逻辑 scaler: replicaCount: 1 # 高可用 resources: limits: cpu: 500m memory: 512Mi requests: cpu: 200m memory: 256Mi # 指标服务端点配置 metricsServer: port: 9090 # RBAC 配置 rbac: create: true # ServiceAccount 配置 serviceAccount: create: true annotations: {} # 全局镜像配置(如需使用私有镜像仓库) # images: # pullPolicy: IfNotPresent # pullSecrets: []