karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.42k stars 875 forks source link

Feature: Support scaling Kubernetes native Horizontal Pod Autoscaler (HPA) with cron. #4249

Open jwcesign opened 10 months ago

jwcesign commented 10 months ago

What would you like to be added: I want Karmada support to modify the min/max of HPA in advance and cope with sudden traffic peaks.

Why is this needed: There is the following scenario: Users use PP to deploy native K8s HPA to member clusters, allowing member clusters to use HPA for auto-scaling. However, there is a certain delay in the effectiveness of HPA, which cannot respond to sudden peak traffic. Therefore, it is necessary to regularly adjust the min/max of HPA in advance to cope with sudden peak traffic. Therefore, I want Karmada support to modify the min/max of HPA in advance and cope with sudden traffic peaks.

Tasks:

chaunceyjiang commented 10 months ago

Users use PP to deploy native K8s HPA to member clusters, allowing member clusters to use HPA for auto-scaling.

Since users are using the native HPA, I believe we should recommend them to use some well-known CronHPA in the k8s ecosystem, rather than having Karmada implement it again.