A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

cronhpa

Type: trait. From: the cronhpa addon.

kubernetes cron horizontal pod autoscaler trait

Also called cronhpa.

Parameters​

targetAPIVersion string default apps/v1
Specify the apiVersion of scale target
targetKind string default Deployment
Specify the kind of scale target
excludeDates []string
Specify the job will skip the execution when the dates is matched. The minimum unit is day.
hpaJobs[] (4) Specify multiple cron hpa jobs
name string required
Specify the name of hpa job, should be unique in one cronhpa spec
schedule string required
Specify the cron schedule strategy
targetSize int required
Specify the size you desired to scale when the scheduled time arrive
runOnce bool default false
Specify if this job need executed repeatly, if runOnce is true then the job will only run and exit after the first execution.