我正在使用git-sync从github中提取我的伙伴。我对values.yaml文件所做的唯一修改是使用KubernetesExecutor、配置git-sync和日志。
是否还缺少其他内容,因为当我运行我的守护进程时,它会失败,并得到以下错误消息。
Creating pod load-weather-data-63b8f20d51e14ae4b0838c2e1c43c259 with labels: {'dag_id': 'hello-generic-world-0802134835', 'task_id': 'Load_weather_data', 'run_id': 'scheduled__2022-08-01T0000000000-4f8c0f359', 'kubernetes_pod_operator': 'True', 'try_number': '1'}
INFO - Deleting pod: load-weather-data-63b8f20d51e14ae4b0838c2e1c43c259
ERROR - Invalid connection configuration. Options kube_config_path, kube_config, in_cluster are mutually exclusive. You can only use one option at a time.
发布于 2022-08-03 13:51:10
切换到KubernetesExecutor时,您将气流配置为连接到K8S集群,在此之前,操作员KubernetesPodOperator使用其他K8S配置来在集群上创建豆荚。因此,现在,当操作符试图获得k8s_conn时,它会发现两种不同的配置(可能它们是相同的,但对于操作符它们是不同的),并且它会引发这个异常(src码)。
尝试删除旧的配置,让操作符自动使用执行器配置。
https://stackoverflow.com/questions/73222535
复制相似问题