How can I easily remove existing deployment pods in my Kubernetes cluster?

There are a lot of old pods from previous deployments in my env0 namespace. My cluster admin limits the number of pods that I can deploy. Can I reduce the number of pods that the env0 agent creates?

There are two parameters you can add to your values.yaml to reduce the number of existing pods that will stick around. 

# values.customer.yml

jobHistoryLimitFailure: 50 (default)
jobHistoryLimitSuccess: 50 (default)

Also, if you want to quickly delete any leftover pods you can use this command:

kubectl delete pods -n env0-agent -l env0-type=env0-deployment


For more configuration options, please refer to this doc: