<p>I am getting started with Airflow and trying to use the KubernetesPodOperator, but I am having trouble with downloading images from private registries. I did some research but I couldn't find an answer to my problem.</p>

<p>Putting it simply: can I use private images from DockerHub with the KubernetesPodOperator?</p>

hscasn
<p>It looks like <a href="https://github.com/apache/incubator-airflow/blob/1.10.0rc4/airflow/contrib/kubernetes/pod_generator.py#L28" rel="nofollow noreferrer">pod_generator.PodGenerator</a> accepts some kind of object <code>kube_config</code> that <a href="https://github.com/apache/incubator-airflow/blob/1.10.0rc4/airflow/contrib/kubernetes/pod_generator.py#L142" rel="nofollow noreferrer">knows about imagePullSecrets</a>, but unfortunately <a href="https://github.com/apache/incubator-airflow/blob/1.10.0rc4/airflow/contrib/operators/kubernetes_pod_operator.py#L87" rel="nofollow noreferrer"><code>KubernetesPodOperator</code></a> doesn't provide any such <code>kube_config</code> to <code>PodGenerator</code></p>

<p>As best I can tell, it's just an edge case that slipped through the cracks, although it looks like there is <a href="https://issues.apache.org/jira/browse/AIRFLOW-2854" rel="nofollow noreferrer">a Jira for that</a> which matches up with <a href="https://github.com/apache/incubator-airflow/pull/3697" rel="nofollow noreferrer">a corresponding GitHub PR</a>, but it isn't clear from looking at the changed files that it will 100% solve the problem you are describing. Perhaps weigh in on either the PR, or the Jira, or maybe even both, to ensure it is addressed.</p>
