Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/c7782cc7e2c3dbe9f31bd896d5232843 to your computer and use it in GitHub Desktop.
Save velotiotech/c7782cc7e2c3dbe9f31bd896d5232843 to your computer and use it in GitHub Desktop.
kubectl describe hpa autoscale-tester
Name: autoscale-tester
Namespace: autoscale-tester
...
Metrics: ( current / target )
"packets_in" on pods: 18666m / 50
Min replicas: 1
Max replicas: 10
Deployment pods: 3 current / 3 desired
Conditions:
Type Status Reason Message
---- ------ ------ -------
AbleToScale True SucceededRescale the HPA controller was able to update the target scale to 2
ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from pods metric packets_in
ScalingLimited False DesiredWithinRange the desired count is within the acceptable range
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulRescale 2s horizontal-pod-autoscaler New size: 2; reason: All metrics below target
Normal SuccessfulRescale 2m51s horizontal-pod-autoscaler New size: 1; reason: All metrics below target
kubectl describe hpa autoscale-tester
Name: autoscale-tester
Namespace: autoscale-tester
...
Metrics: ( current / target )
"packets_in" on pods: 18666m / 50
Min replicas: 1
Max replicas: 10
Deployment pods: 3 current / 3 desired
Conditions:
Type Status Reason Message
---- ------ ------ -------
AbleToScale True SucceededRescale the HPA controller was able to update the target scale to 2
ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from pods metric packets_in
ScalingLimited False DesiredWithinRange the desired count is within the acceptable range
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulRescale 2s horizontal-pod-autoscaler New size: 2; reason: All metrics below target
Normal SuccessfulRescale 2m51s horizontal-pod-autoscaler New size: 1; reason: All metrics below target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment