kimminw00 opened a new issue, #34399:
URL: https://github.com/apache/airflow/issues/34399

   ### Description
   
   Since airflow helm chart only supports cleanup cronjob, user has to modify 
templates to add additional maintenance cronjobs
   
   ### Use case/motivation
   
   For example, we can create multiple custom cronjobs using 
<code>values.yaml</code> ​​below
   
   ```yaml
   cronJobs:
     cleanPods:
       image: apache/airflow
       schedule: "*/15 * * * *"
       command: ~
       args: ["bash", "-c", "exec airflow kubernetes cleanup-pods 
--namespace={{ .Release.Namespace }}"]
       ...
     cleanDB:
       image: apache/airflow
       schedule: "30 3 1 * *"
       command: ~
       args: ["bash", "-c", "exec airflow db clean"]
       ...
     backupDB:
       image: CUSTOM_IMAGE
       schedule: "0 1 1 * *"
       command: ~
       args: ["bash", "-c", "pg_dump -h HOST -U USER_NAME -Fc DATABASE_NAME | 
aws s3 cp - s3://<bucket_name>/<database_name>.dump"]
       ...
   ```
   
   By providing custom cronjobs, we can flexibly respond to additional 
maintenance tasks as needed depending on the environment in which the airflow 
service is running.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to