archiveLogs and artifactGC #12920
Replies: 1 comment
-
Artifact GC and Archived LogsLog artifacts not being removed by the Artifact Garbage Collection (GC) has been addressed in recent Argo Workflows releases. Configuring Artifact GC for LogsTo include logs in the Artifact GC process, configure the apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-gc-logs-
spec:
entrypoint: main
artifactGC:
strategy: OnWorkflowCompletion # or OnWorkflowDeletion
templates:
- name: main
container:
image: busybox
command: [echo, "This is a log message"]
archiveLocation:
archiveLogs: true The Storing Logs in a Separate BucketTo configure a separate artifact repository specifically for logs in the data:
config: |
artifactRepository:
s3:
bucket: your-logs-bucket
endpoint: s3.amazonaws.com
accessKeySecret:
name: your-s3-secret
key: accessKey
secretKeySecret:
name: your-s3-secret
key: secretKey
keyPrefix: logs/
archiveLogs: true This configuration defines a specific S3 bucket for logs. Resources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The logs in the artifact repository (when
archiveLogs
is enabled), doesn't seem to be removed by the artifact gc when the workflow doesn't use any artifacts. Is that intentional?Beta Was this translation helpful? Give feedback.
All reactions