kedacore/keda

Introduce new time-window trigger

開放

#3,566 建立於 2022年8月19日

 (37 則留言) (11 個反應) (1 位負責人)Go (1,457 個分叉)auto 404
feature-requestgood first issueneeds-discussionstale-bot-ignore

倉庫指標

星標
 (10,372 顆星)
PR 合併指標
 (平均合併 8天 8小時) (30 天內合併 94 個 PR)

描述

Proposal

Introduce new time-window trigger which allows you to scale based on a defined time window.

We could use inspiration from the kube-green project:

triggers:
- type: time-window
  weekdays: "Mo-Fri"
  start: "08:00"
  end: "20:00"
  timezone: Asia/Kolkata  # The acceptable values would be a value from the IANA Time Zone Database.

The cron scaler uses desiredReplicas but I believe it should just rely on min/max replica defined on the ScaledObject/ScaledJob.

This trigger should replace the cron scaler which is confusing in how it scales as end-users tend to think it behaves like jobs.

Use-Case

Scale workloads based on a time window.

Anything else?

No response

貢獻者指南