Closed
Description
What happened?
Facing error
HorizontalPodAutoscaler.autoscaling "test" is invalid: spec.behavior.scaleDown.policies[0].periodSeconds: Invalid value: 3600: must be less than or equal to 1800
What did you expect to happen?
It is a limitation, I'd like to avoid scaling down a maximum of 1 pod every 1 hour not half an hour
How can we reproduce it (as minimally and precisely as possible)?
Add a scale down policy for a periodSeconds of 1 hour
scaleDown:
stabilizationWindowSeconds: 300
policies:
- periodSeconds: 3600
type: Pods
value: 1
Anything else we need to know?
If the issue not resolved, better to modify the documentation to clearly mention that this is a limitation and the maximum value of periodSeconds
must be less than or equal half an hour
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#scaling-policies
Kubernetes version
$ kubectl version 1.27
# paste output here
Cloud provider
AWS EKS
OS version
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here