Closed MStokluska closed 8 months ago
TODO: docs to be updated post final review
[x] Apicast created with 4 replicas
[x] Deployment had the specified requests and limits
[x] Set spec.hpa: true
and the deployment requests == limits and after about 10 min the replicas scale down
oc get hpa
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
example-apicast Deployment/apicast-example-apicast 23%/90%, 0%/90% 1 5 1 10m
Weird issue in the ui seems to always have one pod pending
[x] confirm the message in the CR
status:
conditions:
- lastTransitionTime: '2024-01-18T14:28:53Z'
message: APIcast is ready
reason: Ready
status: 'True'
type: Ready
- lastTransitionTime: '2024-01-18T14:28:53Z'
message: >-
HorizontalPodAutoscaling (Hpa) enabled overrides values applied to
request, limits and replicas
reason: HPA
status: 'True'
type: Warning
image: 'quay.io/3scale/apicast:latest'
observedGeneration: 5
[x] remove spec.hpa: true
and the pods scale up and deployment requests and limits match those specified in the CR
NOTE: pending pods go away, but will appear again once hpa in enabled, don't believe its related to this PR . Wonder if its an issue with the HPA controller
code review /lgtm /approve
Jira: https://issues.redhat.com/browse/THREESCALE-10366
Verification
hpa: true
on apicast CR