Replies: 1 comment 3 replies
-
/kind question Thanks for the issue! I'm going to convert this over to a discussion thread so that it doesn't get chewed up by our issue automation.
Worth noting: the PVCs created from a Using a permanent PVC would be another alternative way to go but Pipelines doesn't help out much with that approach - storage management is largely left up to the user because requirements around persistentce can vary dramatically from one org to another. A totally different approach would be to "co-locate" the Tasks that share storage into a single Pod so that they can use an
The Tekton Results project is designing a cleanup feature. In a nutshell: It'll observe your runs and consider them candidates for deletion after they complete (+ a grace period). The design doc is here: https://github.com/tektoncd/community/blob/main/teps/0052-tekton-results-automated-run-resource-cleanup.md |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions