When a POD is terminating, how to get correct status Terminating using Kubernetes REST API. I am not able to figure it out. But kubectl always report correct status, and it also uses REST API to do that.
What magic am I missing in REST API ? does it call two different API's and accumulate status ?