kube-eagle
kube-eagle copied to clipboard
Add option to exclude completed pods?
Hi,
We're facing an issue when we have lots of completed pods:
# kubectl get pods --all-namespaces | grep -i completed | wc -l
11863
And kube-eagle struggles to iterate over that many objects and therefore Kubernetes control plane crashes:

Is there a way to exclude pods in completed state?
Hi @apsega , as of now there's no such option. I'd draft this issue as feature request to exclude pods from scraping with specific conditions:
- by state e. g. "completed, failed, ...."
- by namespace
- ...
This way it is a bit more generic and may help with slightly different use cases as well. PRs are welcome. I don't think I'll work on that in the near future.