Want to follow up on this documentation
https://kubernetes.io/docs/reference/using-api/api-concepts/
Kubernetes API 1.9+ has a pagination in API Kubernetes API Concepts - Kubernetes, but if I am not mistaken, if you need to keep up to date with the all the latest pods, could it be more efficient to run /api/v1/pods?watch=1
, which as I understand should return all the pods at the beginning, and after that start streaming updates to the new pods. That way you can parse every pod line by line, without the need to parse the whole array.
So, my question, is it right, that /api/v1/pods?watch=1
without resourceVersion
returns all the pods, not only one scheduled recently?