Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:28
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/b592175a41a52bf0cdc44d6b1ff1b79a to your computer and use it in GitHub Desktop.
Save velotiotech/b592175a41a52bf0cdc44d6b1ff1b79a to your computer and use it in GitHub Desktop.
kubectl describe hpa autoscale-tester
Name: autoscale-tester
Namespace: autoscale-tester
...
Metrics: ( current / target )
resource memory on pods: 894188202666m / 500Mi
resource cpu on pods (as a percentage of request): 36% (361m) / 50%
Min replicas: 1
Max replicas: 10
Deployment pods: 3 current / 6 desired
Conditions:
Type Status Reason Message
---- ------ ------ -------
AbleToScale True SucceededRescale the HPA controller was able to update the target scale to 6
ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from memory resource
ScalingLimited False DesiredWithinRange the desired count is within the acceptable range
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulRescale 7s horizontal-pod-autoscaler New size: 6; reason: memory resource above target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment