I have some pods created by CronJobs that are in Error
state and it seems that the CPU / Memory requested by these pods are not released since kubelet is not killing them. It prevents other pods from being scheduled.
Is that the expected behavior ? Should I clean them by hand to get the resources back ?
Thanks.
Pods in
Error
you should delete this pod to release resources assigned to it.However pods in
Completed
orFailed
status are not required to be cleaned up to release resources allocated to them. It can be checked by running simpleJob
to check memory resources allocated in node.Memory allocation before job:
Job example:
Memory after the job deployment: