This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Question: Best practice for storage and cleanup in a Tekton CI pipeline #3833
Labels
kind/question
Issues or PRs that are questions around the project or a particular feature
I've patched together a pipeline using tasks from the catalog, and I'm noticing some areas where I'm probably not "doing it right".
The pipeline gets triggered via Github, and it simply clones the triggering repo, builds and pushes its dockerimage, and runs Helm to update an ArgoCD
application
resource.The idea is that we'll have dozens of github repositories that call on this pipeline to deploy themselves into k8s.
Right now, I'm using a
volumeClaimTemplate
in thePipelineRun
, and im noticing that this leaves a bit of clutter in the cluster;Each
PipelineRun
leaves aPersistentVolumeClaim
, after it completes; that's bad. Would it make more sense to have a permanentpvc
, and if so, how to I ensure that it doesn't run out of space?I'm also noticing that the
PipelineRuns
and their associated resources stick around indefinitely after completion; this is handy with respect to the Tekton Dashboard, but I'm thinking I'll need some sort of cleanup job as well.Can anyoine point me toward resources / writeups on how to deal with storage and cleaning when using Tekton for CI?
The text was updated successfully, but these errors were encountered: