Skip to content

Missing docs in the HPA Scaling policies #42111

Closed
@AymanZahran

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

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.sig/autoscalingCategorizes an issue or PR as relevant to SIG Autoscaling.sig/docsCategorizes an issue or PR as relevant to SIG Docs.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions