我开始使用Airflow并尝试使用KubernetesPodOperator,但我在从私有注册表下载图像时遇到了问题。我做了一些研究,但我找不到我的问题的答案。
简单地说:我可以在KubernetesPodOperator中使用DockerHub的私有镜像吗?
发布于 2018-08-22 13:02:14
看起来pod_generator.PodGenerator接受某种类型的对象kube_config knows about imagePullSecrets,但不幸的是KubernetesPodOperator没有向PodGenerator提供任何这样的kube_config
据我所知,这只是一个边缘案例,尽管它看起来像是与a corresponding GitHub PR相匹配的a Jira for that,但从更改的文件中看不出它是否能100%解决您所描述的问题。或许可以在公关或吉拉,或者甚至两者都参与其中,以确保它得到解决。
发布于 2019-03-21 01:28:29
可以,停那儿吧。从版本1.10.1开始,KubernetesPodOperator接受imagePullSecret
:param image_pull_secrets: Any image pull secrets to be given to the pod.
If more than one secret is required, provide a
comma separated list: secret_a,secret_b
:type image_pull_secrets: str参考资料:https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ https://github.com/apache/airflow/blob/master/airflow/contrib/operators/kubernetes_pod_operator.py
https://stackoverflow.com/questions/51956623
复制相似问题