You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/29 23:44:04 UTC

[GitHub] [airflow] rpfernandezjr commented on issue #15580: KubernetesExecutor not deleting worker pods on completion.

rpfernandezjr commented on issue #15580:
URL: https://github.com/apache/airflow/issues/15580#issuecomment-829699581


   Was messing with this today some more. If I set `AIRFLOW__KUBERNETES__POD_TEMPLATE_FILE`  and point that to this template file
   
   ```
   ---
   apiVersion: v1
   kind: Pod
   metadata:
     name: dummy-name
   spec:
     serviceAccountName: default
     restartPolicy: Never
     containers:
       - name: base
         image: dummy_image
         imagePullPolicy: IfNotPresent
         ports: []
         command: []
   ```
   The important setting from the template file being ` restartPolicy: Never`
   
   Is this the correct way of making the pods not stay in the crash loop? 
   
   It doesn't seems like it should be the right solution, and more of a hack, but I'm not entirely sure. Especially if i want to set this setting;
   
   ```
   delete_worker_pods_on_failure = False
   ```
   
   so that my pods don't get deleted when something goes sideways.
   
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org