<p>I am deploying Airflow with official Helm chart and trying to understand why it requires stateful set  for worker deployment. When it makes perfect sense for redis and postgtre I am not sure why this is requirement for worker</p>

Paweł Feliks
<p>Actually, in the official Helm chart, they choose between <code>statefulset</code> and <code>deployment</code> to deploy your workers, based on your <a href="https://github.com/apache/airflow/blob/main/chart/values.yaml#L512" rel="nofollow noreferrer">persistence</a> configurations:</p>
<ul>
<li>if it's enabled (by default), they use the <code>StatefulSet</code> in order to create the PVC which will create a PV per pod.</li>
<li>and if it's disabled, they use the <code>deployment</code></li>
</ul>
<p><a href="https://github.com/apache/airflow/blob/main/chart/templates/workers/worker-deployment.yaml#L29" rel="nofollow noreferrer">Here</a> is the link to the condition they use to choose between the two ressources.</p>
