<p>I'm using Puckels docker file to build and run dags. I'm trying to create new dags that I can execute on a Kubernetes pod but I'm not sure how to get it working on the docker's airflow container.
I tried adding to the docker file</p>
<pre><code>pip install 'apache-airflow[kubernetes]'
</code></pre>
<p>then I tried adding the following line into my dag:</p>
<pre><code>from airflow.contrib.operators import KubernetesOperator
</code></pre>
<p>This is the error message I get:</p>
<pre><code>cannot import name 'KubernetesOperator' from 'airflow.contrib.operators' (unknown location)
</code></pre>

codeBarer
<p>The <code>KubernetesPodOperator</code> is defined under the <code>kubernetes_pod_operator</code>. You should be using:</p>
<pre class="lang-py prettyprint-override"><code>from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
</code></pre>
<p>Please also check out <a href="https://airflow.apache.org/docs/stable/kubernetes.html" rel="nofollow noreferrer">this Airflow documentation page</a>.</p>
