mercari / tortoise

Tortoise: Shell-Shockingly-Good Kubernetes Autoscaling
MIT License
316 stars 14 forks source link

use .spec.replicas instead to take a desired replica number #379

Closed sanposhiho closed 4 months ago

sanposhiho commented 4 months ago

What this PR does / why we need it:

Tortoise uses the replica number to generate the recommendation partly though, seems deployment.status.replicas doesn't show the expected number occasionally; given tortoise wants to know the desired number of replicas, we should use deployment.spec.replicas instead.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer: