fashtop3 commented on issue #14974:
URL: https://github.com/apache/airflow/issues/14974#issuecomment-1214337396

   > 
   
   I hade similar problem when we upgraded to version 2.x Pods get restarted 
even after the Dags ran successfully.
   
   I later resolved it after a long time of debugging by overriding the pod 
template and specifying it in the **airflow.cfg** file.
   
       ```
   
   [kubernetes]
       ....
       pod_template_file = {{ .Values.airflow.home }}/pod_template.yaml
       .....
   
   
   ---
       # pod_template.yaml
       apiVersion: v1
       kind: Pod
       metadata:
         name: dummy-name
       spec:
         serviceAccountName: default
         restartPolicy: Never
         containers:
           - name: base
             image: dummy_image
             imagePullPolicy: IfNotPresent
             ports: []
             command: []
   ```


-- 
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