How can we increase the pod retention for executed...
# ask-the-community
g
How can we increase the pod retention for executed task in flyte-sandbox ?
s
g
I wanted to see the logs. But, I see that executed pods are getting deleted after 1 day. How can we increase the retention period for already executed pods.
g
Yeah, looks like that is the flag. How can I configure that value in sandbox ?
s
1.
kubectl -n flyte edit cm flyte-sandbox-config
2. Under
propeller
, you can add
max-ttl-hours
Copy code
apiVersion: v1
data:
  000-core.yaml: |
    admin:
      endpoint: localhost:8089
      insecure: true
    catalog-cache:
      endpoint: localhost:8081
      insecure: true
      type: datacatalog
    cluster_resources:
      standaloneDeployment: false
      templatePath: /etc/flyte/cluster-resource-templates
    logger:
      show-source: true
      level: 6
    propeller:
      create-flyteworkflow-crd: true
      max-ttl-hours: 48
    webhook:
...
g
Thanks @Samhita Alla!