无法部署Kubeflow Pipeline:Git拉取超时问题求助
解决kubectl apply -k时Git fetch超时的问题
方法1:手动克隆仓库后本地执行kustomize
- 先克隆Kubeflow Pipelines的manifests仓库到本地:
git clone --depth=1 --branch $PIPELINE_VERSION https://github.com/kubeflow/pipelines.git - 进入目标目录:
cd pipelines/manifests/kustomize/cluster-scoped-resources - 本地执行kubectl apply:
kubectl apply -k .
方法2:延长Git超时时间
- 先设置Git全局参数,提升超时阈值:
git config --global http.postBuffer 524288000 git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 900 - 重新执行原kubectl命令:
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"
方法3:排查网络代理配置
- 若无需代理,直接取消Git代理设置:
git config --global --unset http.proxy git config --global --unset https.proxy - 若需要代理,确认代理地址和端口正确:
git config --global http.proxy http://your-proxy-addr:port git config --global https.proxy http://your-proxy-addr:port
方法4:更换仓库镜像源
- 使用国内镜像源替代官方仓库,提升克隆速度:
注意:需确认镜像源的分支/tag与你使用的kubectl apply -k "https://gitee.com/mirrors/kubeflow-pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"$PIPELINE_VERSION一致。
内容的提问来源于stack exchange,提问作者Aska
相关产品推荐
相关产品推荐

