Pods keeps coming back after theyre deleted

I am running into an issue of my master node running out of ram space and is due to pods when there deleted, they keep coming back as a new replacement and stays at the status creatingcontainer and doesnt actually complete the job.

I attemped to updated the yaml file and did replicas to 0 and still no change. Is this due to changing the yalm file while it was still running a pod and realying the apply -f yaml?

Please help if you can.,
Tim

Sounds like a consequence of “desired state”. Kubernetes tries to satisfy your deployment specification.
Setting replicas to 0 might be a problem.
With
kubectl delete -f <deployment.yaml>
the complete deployment with all pods will be deleted