<p>I am using official Helm chart for airflow. Every Pod works properly <strong>except Worker node</strong>.</p>
<p>Even in that worker node, 2 of the containers (git-sync and worker-log-groomer) works fine.</p>
<p>The error happened in the 3rd container (worker) with CrashLoopBackOff. Exit code status as 137 OOMkilled.</p>
<p>In my openshift, memory usage is showing to be at 70%.</p>
<p>Although this error comes because of memory leak. This doesn't happen to be the case for this one. Please help, I have been going on in this one for a week now.</p>
<p><strong>Kubectl describe pod airflow-worker-0</strong> -&gt;</p>
<pre><code>worker:
    Container ID:  &lt;&gt;
    Image:         &lt;&gt;
    Image ID:     &lt;&gt;
    Port:          &lt;&gt;
    Host Port:     &lt;&gt;
    Args:
      bash
      -c
      exec \
      airflow celery worker
    State:          Running
      Started:      &lt;&gt;
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      &lt;&gt;
      Finished:     &lt;&gt;
    Ready:          True
    Restart Count:  3
    Limits:
      ephemeral-storage:  30G
      memory:             1Gi
    Requests:
      cpu:                50m
      ephemeral-storage:  100M
      memory:             409Mi
    Environment:
      DUMB_INIT_SETSID:                        0
      AIRFLOW__CORE__FERNET_KEY:               &lt;&gt;                     Optional: false
    Mounts:
      &lt;&gt;
  git-sync:
    Container ID:   &lt;&gt;
    Image:          &lt;&gt;
    Image ID:       &lt;&gt;
    Port:           &lt;none&gt;
    Host Port:      &lt;none&gt;
    State:          Running
      Started:      &lt;&gt;
    Ready:          True
    Restart Count:  0
    Limits:
      ephemeral-storage:  30G
      memory:             1Gi
    Requests:
      cpu:                50m
      ephemeral-storage:  100M
      memory:             409Mi
    Environment:
      GIT_SYNC_REV:                HEAD
    Mounts:
      &lt;&gt;
  worker-log-groomer:
    Container ID:  &lt;&gt;
    Image:         &lt;&gt;
    Image ID:      &lt;&gt;
    Port:          &lt;none&gt;
    Host Port:     &lt;none&gt;
    Args:
      bash
      /clean-logs
    State:          Running
      Started:      &lt;&gt;
    Ready:          True
    Restart Count:  0
    Limits:
      ephemeral-storage:  30G
      memory:             1Gi
    Requests:
      cpu:                50m
      ephemeral-storage:  100M
      memory:             409Mi
    Environment:
      AIRFLOW__LOG_RETENTION_DAYS:  5
    Mounts:
      &lt;&gt;
</code></pre>
<p>I am pretty much sure you know the answer. Read all your articles on airflow. Thank you :)
<a href="https://stackoverflow.com/users/1376561/marc-lamberti">https://stackoverflow.com/users/1376561/marc-lamberti</a></p>

Aditya Sinha
<p>The issues occurs due to placing a <strong>limit</strong> in &quot;<strong>resources</strong>&quot; under helm chart - values.yaml in any of the pods.</p>
<p>By <strong>default</strong> it is -</p>
<pre><code>resources: {}
</code></pre>
<p>but this causes an issue as pods can access unlimited memory as required.</p>
<p>By changing it to -</p>
<pre><code>resources:
   limits:
    cpu: 200m
    memory: 2Gi
   requests:
    cpu: 100m
    memory: 512Mi
</code></pre>
<p>It makes the pod clear on how much it can access and request.
This solved my issue.</p>
