Drone 1.0 on Helm - No space left on device

I’m using stable/drone helm chart with persistent volume claim on Google Kubernetes Engine.
In pipelines I build rails docker image and push to repository.
It does work until I somewhat ran out of the space and it cannot build anything.
Does it have some way to clean up the space? I’m quite new on k8s’ PVC though.

I have to set persistence: false in helm chart for now

Edit: This does not work as well.

I’ve inspected further and found that /drone/src is slowly filling up the space in Drone agent workspace

I’ve tried adding a step with rm -rf /drone/src/* but it does not work.

Try a build step afterwards using the docker plugin with the command: docker system prune

1 Like

Facing the same issue. Is there a fix for this ?

yes, upgrade to a newer version of Drone (e.g. 1.2.1) to take advantage of fixes and improvements, including the fix to this issue.

i have upgraded and still facing the same issue.

This was the relevant fix https://github.com/drone/drone/pull/2694. If you think it can be improved in some way we would accept a pull request.

1 Like