continuous-deployment-on-kubernetes icon indicating copy to clipboard operation
continuous-deployment-on-kubernetes copied to clipboard

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

Open MarkPare opened this issue 6 years ago • 2 comments

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 avatar Oct 04 '18 09:10 MarkPare

Is this not an issue for anyone else?

MarkPare avatar Jan 27 '19 03:01 MarkPare

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?

viglesiasce avatar Jan 28 '19 20:01 viglesiasce