title: How to get number of pods (available or terminating) in kubernetes?
body: <p>I need to find the number of pods currently NOT terminated (can be available, terminating, etc.) in order to prevent deployment from starting if there are still some pods not terminated.</p>
  <p>UPDATE: If there are no pods available, I should get &quot;0&quot;. Is it possible ?</p>