keikoproj/active-monitor

Enable default PodGC strategy as OnPodCompletion in workflow

RaviHari opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
As the use cases for Monitor/Remedy grow the number of pods created can grow more. If the ttl for pod deletion is not aggressive there can many pods in completed state which can still consume resources such as IP's (in EKS) etc.,

Describe the solution you'd like
Enable default PodGC strategy as OnPodCompletion in Active-Monitor workflow. https://argoproj.github.io/argo/fields/#podgc.
This will help cleanup the pods immediately after execution. The status of the pod execution is updated in argo workflow. As the Active-Monitor controller reads the status from argo workflow we donot need the pod itself once it is executed. This will save resources.

Have you thought about contributing yourself?

Yes.