kube-eagle icon indicating copy to clipboard operation
kube-eagle copied to clipboard

Add option to exclude completed pods?

Open apsega opened this issue 5 years ago • 1 comments

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:

Screenshot 2020-03-18 at 14 14 22

Is there a way to exclude pods in completed state?

apsega avatar Mar 18 '20 12:03 apsega

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.

weeco avatar Mar 18 '20 12:03 weeco