<p>This might be a hard one to solve, but I'm depending on you! This question is bothering me for days now and I can't seem to figure it out on my own.
Our Airflow instance is deployed using the Kubernetes Executor. The Executor starts Worker Pods, which in turn start Pods with our data-transformation logic.
The worker and operator pods all run fine, but Airflow has trouble adopting the status.phase:'Completed' pods. It tries and tries, but to no avail.</p>
<p>All the pods are running in the airflow-build Kubernetes namespace.</p>
<p>The Airflow workers are created with this template:</p>
<pre><code>pod_template_file.yaml:
apiVersion: v1
kind: Pod
metadata:
  name: dummy-name
spec:

  containers:
    - args: []
      command: []
      resources: 
        requests:
          memory: &quot;100Mi&quot;
          cpu: &quot;100m&quot;
        limits:
          memory: &quot;2Gi&quot;
          cpu: &quot;1&quot;

      imagePullPolicy: IfNotPresent
      name: base
      image: dummy_image 

      env:
        - name: AIRFLOW__CORE__SQL_ALCHEMY_CONN
          valueFrom:
            secretKeyRef:
              name: connection-secret
              key: connection
              
        - name: AIRFLOW__CORE__FERNET_KEY
          valueFrom:
            secretKeyRef:
              name: fernet-secret
              key: fernet

     
      volumeMounts:
        - name: airflow-logs
          mountPath: &quot;/opt/airflow/logs&quot;
          subPath: airflow/logs
        - name: airflow-dags
          mountPath: /opt/airflow/dags
          readOnly: true
          subPath: airflow/dags
        - name: airflow-config
          mountPath: &quot;/opt/airflow/airflow.cfg&quot;
          subPath: airflow.cfg
          readOnly: true
        - name: airflow-config
          mountPath: /opt/airflow/pod_template_file.yaml
          subPath: pod_template_file.yaml
          readOnly: true

  restartPolicy: Never

  serviceAccountName: scheduler-serviceaccount

  volumes:
    - name: airflow-dags
      persistentVolumeClaim:
        claimName: airflow-dags-claim
    - name: airflow-logs
      persistentVolumeClaim:
        claimName: airflow-logs-claim
    - name: airflow-config
      configMap:
        name: base-config

</code></pre>
<p>My simple DAG looks like this:</p>
<pre><code>from airflow import DAG
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow import configuration as conf
from datetime import datetime, timedelta
from kubernetes.client import CoreV1Api, models as k8s


# Default settings applied to all tasks
default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'email_on_failure': False,
    'email_on_retry': False,
    'retries': 1,
    'retry_delay': timedelta(minutes=5)
}


dag = DAG('test-mike',
         start_date=datetime(2019, 1, 1),
         max_active_runs=1,
         default_args=default_args,
         catchup=False 
         ) 

namespace = conf.get('kubernetes', 'NAMESPACE')

op=KubernetesPodOperator(
        task_id='mike-test-task',
        namespace=namespace,
        service_account_name='scheduler-serviceaccount',
        image=f'acrdatahubaragdev.azurecr.io/data-test-mike2:latest',
        name='mike-test-name',
        is_delete_operator_pod=True,
        startup_timeout_seconds=300,
        in_cluster=True,
        get_logs=True,
        dag=dag)
</code></pre>
<p>Now, everything runs fine. When the Operator Pod is done, it is cleaned up quickly. However, the worker Pod remains on the &quot;Completed&quot; status, like this:</p>
<pre><code>Name:         testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3
Namespace:    airflow-build
Priority:     0
Node:         aks-default-23404167-vmss000000/10.161.132.13
Start Time:   Tue, 23 Mar 2021 08:12:57 +0100
Labels:       airflow-worker=201
              airflow_version=2.0.0
              dag_id=test-mike
              execution_date=2021-03-23T07_12_54.887218_plus_00_00
              kubernetes_executor=True
              task_id=mike-test-task
              try_number=1
Annotations:  dag_id: test-mike
              execution_date: 2021-03-23T07:12:54.887218+00:00
              task_id: mike-test-task
              try_number: 1
Status:       Succeeded
IP:           10.161.132.18
IPs:
  IP:  10.161.132.18
Containers:
  base:
    Container ID:  docker://abe9e33c356de398af865736e0054b0eaaa6f3b99c44a6d021b4ca3a981161ce
    Image:         apache/airflow:2.0.0-python3.8
    Image ID:      docker-pullable://apache/airflow@sha256:76bd7cd6d47ffea98df98f5744680a860663bc26836fd3d67d529b06caaf97a7
    Port:          &lt;none&gt;
    Host Port:     &lt;none&gt;
    Args:
      airflow
      tasks
      run
      test-mike
      mike-test-task
      2021-03-23T07:12:54.887218+00:00
      --local
      --pool
      default_pool
      --subdir
      /opt/airflow/dags/rev-5428eb02735b885217bf43fc900c95fb0312c536/test-dag-mike.py
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Tue, 23 Mar 2021 08:12:59 +0100
      Finished:     Tue, 23 Mar 2021 08:13:39 +0100
    Ready:          False
    Restart Count:  0
    Limits:
      cpu:     1
      memory:  2Gi
    Requests:
      cpu:     100m
      memory:  100Mi
    Environment:
      AIRFLOW__CORE__SQL_ALCHEMY_CONN:  &lt;set to the key 'connection' in secret 'connection-secret'&gt;  Optional: false
      AIRFLOW__CORE__FERNET_KEY:        &lt;set to the key 'fernet' in secret 'fernet-secret'&gt;          Optional: false
      AIRFLOW_IS_K8S_EXECUTOR_POD:      True
    Mounts:
      /opt/airflow/airflow.cfg from airflow-config (ro,path=&quot;airflow.cfg&quot;)
      /opt/airflow/dags from airflow-dags (ro,path=&quot;airflow/dags&quot;)
      /opt/airflow/logs from airflow-logs (rw,path=&quot;airflow/logs&quot;)
      /opt/airflow/pod_template_file.yaml from airflow-config (ro,path=&quot;pod_template_file.yaml&quot;)
      /var/run/secrets/kubernetes.io/serviceaccount from scheduler-serviceaccount-token-wt57g (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  airflow-dags:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  airflow-dags-claim
    ReadOnly:   false
  airflow-logs:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  airflow-logs-claim
    ReadOnly:   false
  airflow-config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      base-config
    Optional:  false
  scheduler-serviceaccount-token-wt57g:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  scheduler-serviceaccount-token-wt57g
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  &lt;none&gt;
Tolerations:     node.kubernetes.io/memory-pressure:NoSchedule
                 node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type    Reason     Age        From                                      Message
  ----    ------     ----       ----                                      -------
  Normal  Scheduled  &lt;unknown&gt;                                            Successfully assigned airflow-build/testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3 to aks-default-23404167-vmss000000
  Normal  Pulled     75s        kubelet, aks-default-23404167-vmss000000  Container image &quot;apache/airflow:2.0.0-python3.8&quot; already present on machine
  Normal  Created    74s        kubelet, aks-default-23404167-vmss000000  Created container base
  Normal  Started    74s        kubelet, aks-default-23404167-vmss000000  Started container base
</code></pre>
<p>The scheduler tries to adopt the completed Worker pod. But this pod is not cleaned and the scheduler keeps trying:</p>
<pre><code>

[2021-03-23 07:14:46,270] {scheduler_job.py:1751} INFO - Resetting orphaned tasks for active dag runs
[2021-03-23 07:14:46,377] {rest.py:228} DEBUG - response body: 
{
    &quot;kind&quot;: &quot;PodList&quot;,
    &quot;apiVersion&quot;: &quot;v1&quot;,
    &quot;metadata&quot;: {
        &quot;selfLink&quot;: &quot;/api/v1/namespaces/airflow-build/pods&quot;,
        &quot;resourceVersion&quot;: &quot;2190163&quot;
    },
    &quot;items&quot;: [
        {
            &quot;metadata&quot;: {
                &quot;name&quot;: &quot;testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3&quot;,
                &quot;namespace&quot;: &quot;airflow-build&quot;,
                &quot;selfLink&quot;: &quot;/api/v1/namespaces/airflow-build/pods/testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3&quot;,
                &quot;uid&quot;: &quot;24b7341b-99a3-4dae-9266-40e79ac7cd70&quot;,
                &quot;resourceVersion&quot;: &quot;2190012&quot;,
                &quot;creationTimestamp&quot;: &quot;2021-03-23T07:12:57Z&quot;,
                &quot;labels&quot;: {
                    &quot;airflow-worker&quot;: &quot;201&quot;,
                    &quot;airflow_version&quot;: &quot;2.0.0&quot;,
                    &quot;dag_id&quot;: &quot;test-mike&quot;,
                    &quot;execution_date&quot;: &quot;2021-03-23T07_12_54.887218_plus_00_00&quot;,
                    &quot;kubernetes_executor&quot;: &quot;True&quot;,
                    &quot;task_id&quot;: &quot;mike-test-task&quot;,
                    &quot;try_number&quot;: &quot;1&quot;
                },
                &quot;annotations&quot;: {
                    &quot;dag_id&quot;: &quot;test-mike&quot;,
                    &quot;execution_date&quot;: &quot;2021-03-23T07:12:54.887218+00:00&quot;,
                    &quot;task_id&quot;: &quot;mike-test-task&quot;,
                    &quot;try_number&quot;: &quot;1&quot;
                },
                &quot;managedFields&quot;: [
                    {
                        &quot;manager&quot;: &quot;kubelet&quot;,
                        &quot;operation&quot;: &quot;Update&quot;,
                        &quot;apiVersion&quot;: &quot;v1&quot;,
                        &quot;time&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                        &quot;fieldsType&quot;: &quot;FieldsV1&quot;,
                        &quot;fieldsV1&quot;: {
                            &quot;f:status&quot;: {
                                &quot;f:conditions&quot;: {
                                    &quot;k:{\&quot;type\&quot;:\&quot;ContainersReady\&quot;}&quot;: {
                                        &quot;.&quot;: {},
                                        &quot;f:lastProbeTime&quot;: {},
                                        &quot;f:lastTransitionTime&quot;: {},
                                        &quot;f:reason&quot;: {},
                                        &quot;f:status&quot;: {},
                                        &quot;f:type&quot;: {}
                                    },
                                    &quot;k:{\&quot;type\&quot;:\&quot;Initialized\&quot;}&quot;: {
                                        &quot;.&quot;: {},
                                        &quot;f:lastProbeTime&quot;: {},
                                        &quot;f:lastTransitionTime&quot;: {},
                                        &quot;f:reason&quot;: {},
                                        &quot;f:status&quot;: {},
                                        &quot;f:type&quot;: {}
                                    },
                                    &quot;k:{\&quot;type\&quot;:\&quot;Ready\&quot;}&quot;: {
                                        &quot;.&quot;: {},
                                        &quot;f:lastProbeTime&quot;: {},
                                        &quot;f:lastTransitionTime&quot;: {},
                                        &quot;f:reason&quot;: {},
                                        &quot;f:status&quot;: {},
                                        &quot;f:type&quot;: {}
                                    }
                                },
                                &quot;f:hostIP&quot;: {},
                                &quot;f:phase&quot;: {},
                                &quot;f:podIP&quot;: {},
                                &quot;f:podIPs&quot;: {
                                    &quot;.&quot;: {},
                                    &quot;k:{\&quot;ip\&quot;:\&quot;10.161.132.18\&quot;}&quot;: {
                                        &quot;.&quot;: {},
                                        &quot;f:ip&quot;: {}
                                    }
                                },
                                &quot;f:startTime&quot;: {}
                            }
                        }
                    },
                    {
                        &quot;manager&quot;: &quot;OpenAPI-Generator&quot;,
                        &quot;operation&quot;: &quot;Update&quot;,
                        &quot;apiVersion&quot;: &quot;v1&quot;,
                        &quot;time&quot;: &quot;2021-03-23T07:13:42Z&quot;,
                        &quot;fieldsType&quot;: &quot;FieldsV1&quot;,
                        &quot;fieldsV1&quot;: {
                            &quot;f:metadata&quot;: {
                                &quot;f:annotations&quot;: {
                                    &quot;.&quot;: {},
                                    &quot;f:dag_id&quot;: {},
                                    &quot;f:execution_date&quot;: {},
                                    &quot;f:task_id&quot;: {},
                                    &quot;f:try_number&quot;: {}
                                },
                                &quot;f:labels&quot;: {
                                    &quot;.&quot;: {},
                                    &quot;f:airflow-worker&quot;: {},
                                    &quot;f:airflow_version&quot;: {},
                                    &quot;f:dag_id&quot;: {},
                                    &quot;f:execution_date&quot;: {},
                                    &quot;f:kubernetes_executor&quot;: {},
                                    &quot;f:task_id&quot;: {},
                                    &quot;f:try_number&quot;: {}
                                }
                            },
                          &lt;.....&gt;
            &quot;status&quot;: {
                &quot;phase&quot;: &quot;Succeeded&quot;,
                &quot;conditions&quot;: [
                    {
                        &quot;type&quot;: &quot;Initialized&quot;,
                        &quot;status&quot;: &quot;True&quot;,
                        &quot;lastProbeTime&quot;: null,
                        &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:12:57Z&quot;,
                        &quot;reason&quot;: &quot;PodCompleted&quot;
                    },
                    {
                        &quot;type&quot;: &quot;Ready&quot;,
                        &quot;status&quot;: &quot;False&quot;,
                        &quot;lastProbeTime&quot;: null,
                        &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                        &quot;reason&quot;: &quot;PodCompleted&quot;
                    },
                    {
                        &quot;type&quot;: &quot;ContainersReady&quot;,
                        &quot;status&quot;: &quot;False&quot;,
                        &quot;lastProbeTime&quot;: null,
                        &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                        &quot;reason&quot;: &quot;PodCompleted&quot;
                    },
                    {
                        &quot;type&quot;: &quot;PodScheduled&quot;,
                        &quot;status&quot;: &quot;True&quot;,
                        &quot;lastProbeTime&quot;: null,
                        &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:12:57Z&quot;
                    }
                ],
                &quot;hostIP&quot;: &quot;10.161.132.13&quot;,
                &quot;podIP&quot;: &quot;10.161.132.18&quot;,
                &quot;podIPs&quot;: [
                    {
                        &quot;ip&quot;: &quot;10.161.132.18&quot;
                    }
                ],
                &quot;startTime&quot;: &quot;2021-03-23T07:12:57Z&quot;,
                &quot;containerStatuses&quot;: [
                    {
                        &quot;name&quot;: &quot;base&quot;,
                        &quot;state&quot;: {
                            &quot;terminated&quot;: {
                                &quot;exitCode&quot;: 0,
                                &quot;reason&quot;: &quot;Completed&quot;,
                                &quot;startedAt&quot;: &quot;2021-03-23T07:12:59Z&quot;,
                                &quot;finishedAt&quot;: &quot;2021-03-23T07:13:39Z&quot;,
                                &quot;containerID&quot;: &quot;docker://abe9e33c356de398af865736e0054b0eaaa6f3b99c44a6d021b4ca3a981161ce&quot;
                            }
                        },
                        &quot;lastState&quot;: {},
                        &quot;ready&quot;: false,
                        &quot;restartCount&quot;: 0,
                        &quot;image&quot;: &quot;apache/airflow:2.0.0-python3.8&quot;,
                        &quot;imageID&quot;: &quot;docker-pullable://apache/airflow@sha256:76bd7cd6d47ffea98df98f5744680a860663bc26836fd3d67d529b06caaf97a7&quot;,
                        &quot;containerID&quot;: &quot;docker://abe9e33c356de398af865736e0054b0eaaa6f3b99c44a6d021b4ca3a981161ce&quot;,
                        &quot;started&quot;: false
                    }
                ],
                &quot;qosClass&quot;: &quot;Burstable&quot;
            }
        }
    ]
}

[2021-03-23 07:14:46,382] {kubernetes_executor.py:661} INFO - Attempting to adopt pod testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3

[2021-03-23 07:14:46,463] {rest.py:228} DEBUG - response body: 
{
    &quot;kind&quot;: &quot;Pod&quot;,
    &quot;apiVersion&quot;: &quot;v1&quot;,
    &quot;metadata&quot;: {
        &quot;name&quot;: &quot;testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3&quot;,
        &quot;namespace&quot;: &quot;airflow-build&quot;,
        &quot;selfLink&quot;: &quot;/api/v1/namespaces/airflow-build/pods/testmikemiketesttask-f312cd42164b4907af4214e8ee7af8b3&quot;,
        &quot;uid&quot;: &quot;24b7341b-99a3-4dae-9266-40e79ac7cd70&quot;,
        &quot;resourceVersion&quot;: &quot;2190012&quot;,
        &quot;creationTimestamp&quot;: &quot;2021-03-23T07:12:57Z&quot;,
        &quot;labels&quot;: {
            &quot;airflow-worker&quot;: &quot;201&quot;,
            &quot;airflow_version&quot;: &quot;2.0.0&quot;,
            &quot;dag_id&quot;: &quot;test-mike&quot;,
            &quot;execution_date&quot;: &quot;2021-03-23T07_12_54.887218_plus_00_00&quot;,
            &quot;kubernetes_executor&quot;: &quot;True&quot;,
            &quot;task_id&quot;: &quot;mike-test-task&quot;,
            &quot;try_number&quot;: &quot;1&quot;
        },
        &quot;annotations&quot;: {
            &quot;dag_id&quot;: &quot;test-mike&quot;,
            &quot;execution_date&quot;: &quot;2021-03-23T07:12:54.887218+00:00&quot;,
            &quot;task_id&quot;: &quot;mike-test-task&quot;,
            &quot;try_number&quot;: &quot;1&quot;
        },
        &quot;managedFields&quot;: [
            {
                &quot;manager&quot;: &quot;kubelet&quot;,
                &quot;operation&quot;: &quot;Update&quot;,
                &quot;apiVersion&quot;: &quot;v1&quot;,
                &quot;time&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                &quot;fieldsType&quot;: &quot;FieldsV1&quot;,
                &quot;fieldsV1&quot;: {
                    &quot;f:status&quot;: {
                        &quot;f:conditions&quot;: {
                            &quot;k:{\&quot;type\&quot;:\&quot;ContainersReady\&quot;}&quot;: {
                                &quot;.&quot;: {},
                                &quot;f:lastProbeTime&quot;: {},
                                &quot;f:lastTransitionTime&quot;: {},
                                &quot;f:reason&quot;: {},
                                &quot;f:status&quot;: {},
                                &quot;f:type&quot;: {}
                            },
                            &quot;k:{\&quot;type\&quot;:\&quot;Initialized\&quot;}&quot;: {
                                &quot;.&quot;: {},
                                &quot;f:lastProbeTime&quot;: {},
                                &quot;f:lastTransitionTime&quot;: {},
                                &quot;f:reason&quot;: {},
                                &quot;f:status&quot;: {},
                                &quot;f:type&quot;: {}
                            },
                            &quot;k:{\&quot;type\&quot;:\&quot;Ready\&quot;}&quot;: {
                                &quot;.&quot;: {},
                                &quot;f:lastProbeTime&quot;: {},
                                &quot;f:lastTransitionTime&quot;: {},
                                &quot;f:reason&quot;: {},
                                &quot;f:status&quot;: {},
                                &quot;f:type&quot;: {}
                            }
                        },
                        &quot;f:hostIP&quot;: {},
                        &quot;f:phase&quot;: {},
                        &quot;f:podIP&quot;: {},
                        &quot;f:podIPs&quot;: {
                            &quot;.&quot;: {},
                            &quot;k:{\&quot;ip\&quot;:\&quot;10.161.132.18\&quot;}&quot;: {
                                &quot;.&quot;: {},
                                &quot;f:ip&quot;: {}
                            }
                        },
                        &quot;f:startTime&quot;: {}
                    }
                }
            },
            {
                &quot;manager&quot;: &quot;OpenAPI-Generator&quot;,
                &quot;operation&quot;: &quot;Update&quot;,
                &quot;apiVersion&quot;: &quot;v1&quot;,
                &quot;time&quot;: &quot;2021-03-23T07:13:42Z&quot;,
                &quot;fieldsType&quot;: &quot;FieldsV1&quot;,
                &quot;fieldsV1&quot;: {
                    &quot;f:metadata&quot;: {
                        &quot;f:annotations&quot;: {
                            &quot;.&quot;: {},
                            &quot;f:dag_id&quot;: {},
                            &quot;f:execution_date&quot;: {},
                            &quot;f:task_id&quot;: {},
                            &quot;f:try_number&quot;: {}
                        },
                        &quot;f:labels&quot;: {
                            &quot;.&quot;: {},
                            &quot;f:airflow-worker&quot;: {},
                            &quot;f:airflow_version&quot;: {},
                            &quot;f:dag_id&quot;: {},
                            &quot;f:execution_date&quot;: {},
                            &quot;f:kubernetes_executor&quot;: {},
                            &quot;f:task_id&quot;: {},
                            &quot;f:try_number&quot;: {}
                        }
                    },
                    &quot;f:spec&quot;: {
                       &lt;....&gt;
        &quot;tolerations&quot;: [
            {
                &quot;key&quot;: &quot;node.kubernetes.io/not-ready&quot;,
                &quot;operator&quot;: &quot;Exists&quot;,
                &quot;effect&quot;: &quot;NoExecute&quot;,
                &quot;tolerationSeconds&quot;: 300
            },
            {
                &quot;key&quot;: &quot;node.kubernetes.io/unreachable&quot;,
                &quot;operator&quot;: &quot;Exists&quot;,
                &quot;effect&quot;: &quot;NoExecute&quot;,
                &quot;tolerationSeconds&quot;: 300
            },
            {
                &quot;key&quot;: &quot;node.kubernetes.io/memory-pressure&quot;,
                &quot;operator&quot;: &quot;Exists&quot;,
                &quot;effect&quot;: &quot;NoSchedule&quot;
            }
        ],
        &quot;priority&quot;: 0,
        &quot;enableServiceLinks&quot;: true,
        &quot;preemptionPolicy&quot;: &quot;PreemptLowerPriority&quot;
    },
    &quot;status&quot;: {
        &quot;phase&quot;: &quot;Succeeded&quot;,
        &quot;conditions&quot;: [
            {
                &quot;type&quot;: &quot;Initialized&quot;,
                &quot;status&quot;: &quot;True&quot;,
                &quot;lastProbeTime&quot;: null,
                &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:12:57Z&quot;,
                &quot;reason&quot;: &quot;PodCompleted&quot;
            },
            {
                &quot;type&quot;: &quot;Ready&quot;,
                &quot;status&quot;: &quot;False&quot;,
                &quot;lastProbeTime&quot;: null,
                &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                &quot;reason&quot;: &quot;PodCompleted&quot;
            },
            {
                &quot;type&quot;: &quot;ContainersReady&quot;,
                &quot;status&quot;: &quot;False&quot;,
                &quot;lastProbeTime&quot;: null,
                &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:13:40Z&quot;,
                &quot;reason&quot;: &quot;PodCompleted&quot;
            },
            {
                &quot;type&quot;: &quot;PodScheduled&quot;,
                &quot;status&quot;: &quot;True&quot;,
                &quot;lastProbeTime&quot;: null,
                &quot;lastTransitionTime&quot;: &quot;2021-03-23T07:12:57Z&quot;
            }
        ],
        &quot;hostIP&quot;: &quot;10.161.132.13&quot;,
        &quot;podIP&quot;: &quot;10.161.132.18&quot;,
        &quot;podIPs&quot;: [
            {
                &quot;ip&quot;: &quot;10.161.132.18&quot;
            }
        ],
        &quot;startTime&quot;: &quot;2021-03-23T07:12:57Z&quot;,
        &quot;containerStatuses&quot;: [
            {
                &quot;name&quot;: &quot;base&quot;,
                &quot;state&quot;: {
                    &quot;terminated&quot;: {
                        &quot;exitCode&quot;: 0,
                        &quot;reason&quot;: &quot;Completed&quot;,
                        &quot;startedAt&quot;: &quot;2021-03-23T07:12:59Z&quot;,
                        &quot;finishedAt&quot;: &quot;2021-03-23T07:13:39Z&quot;,
                        &quot;containerID&quot;: &quot;docker://abe9e33c356de398af865736e0054b0eaaa6f3b99c44a6d021b4ca3a981161ce&quot;
                    }
                },
                &quot;lastState&quot;: {},
                &quot;ready&quot;: false,
                &quot;restartCount&quot;: 0,
                &quot;image&quot;: &quot;apache/airflow:2.0.0-python3.8&quot;,
                &quot;imageID&quot;: &quot;docker-pullable://apache/airflow@sha256:76bd7cd6d47ffea98df98f5744680a860663bc26836fd3d67d529b06caaf97a7&quot;,
                &quot;containerID&quot;: &quot;docker://abe9e33c356de398af865736e0054b0eaaa6f3b99c44a6d021b4ca3a981161ce&quot;,
                &quot;started&quot;: false
            }
        ],
        &quot;qosClass&quot;: &quot;Burstable&quot;
    }
}
</code></pre>
<p>Thanks for helping me out!</p>

Mike Pieters
<p>Did you try to play with these values?</p>
<p>AIRFLOW__KUBERNETES__DELETE_WORKER_PODS: &quot;True&quot; AIRFLOW__KUBERNETES__DELETE_WORKER_PODS_ON_FAILURE: &quot;False&quot;</p>
