Open
Description
Current version of the plugin executes kubectl command and it limits the requests. Once pods are the root of the data used in this plugin we will see incorrect numbers for large (>500 pods) cluster.
Eg.
kubectl get pods -v=9
Executes
curl -k -v -XGET -H "User-Agent: kubectl/v1.13.11 (linux/amd64) kubernetes/2e298c7" -H "Accept: application/json;as=Table;v=v1beta1;g=meta.k8s.io, application/json" 'https://34.68.198.225/api/v1/namespaces/default/pods?limit=500'
We need to replace kubectl command and call api directly using the pagination feature.