GoogleCloudPlatform / continuous-deployment-on-kubernetes

Get up and running with Jenkins on Google Kubernetes Engine
Apache License 2.0
1.6k stars 890 forks source link

Each build creates new pod that only goes away after manually deleting #132

Open MarkPare opened 6 years ago

MarkPare commented 6 years ago

Each build spawns a new pod to carry out the build. I understand that this is expected behavior, but what I'm wondering is is there any mechanism for cleanup? Right now my GKE console and kubectl get pods command are polluted by dozens of pods that have Completed status. This number will only increase over time.

@viglesiasce, any thoughts?

Thanks!

MarkPare commented 5 years ago

Is this not an issue for anyone else?

viglesiasce commented 5 years ago

Hey @MarkPare this should not be the case. Can you post the minimal Jenkinsfile that reproduces this and also how your Kubernetes plugin is configured? What version of K8s and Jenkins is this?