lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
498 stars 109 forks source link

Requested memory for deployment manifest is not high enough for large clusters #34

Closed cheeseandcereal closed 5 years ago

cheeseandcereal commented 5 years ago

When running this deployment with the given manifest (https://github.com/lwolf/kube-cleanup-operator/blob/master/deploy/deployment.yaml) on larger clusters, this runs out of memory:

State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137

My cluster that this failed on had ~3500 pods.

Bumping up to 100Mi seemed to work for me.

I'd recommend either changing the manifest, or leaving a comment by the resources that mentions the memory limit should be bumped up on larger clusters.

lwolf commented 5 years ago

Deployment files in the repo are for demonstration purposes and should be customized for specific use cases.