如何解决尝试在 GCP 上下载 Kubeflow 管理集群蓝图时出现 YQ 错误
我对 Kubeflow 还很陌生,在遵循 instructions 在 GCP 上部署它时遇到了困难。在完成部署过程的前两个部分后,当被要求使用 Makefile 从 GitHub 下载 Kubeflow 管理集群蓝图时,我陷入了“Management Cluster Setup”。
在管理目录中(按照说明指定为 env var $MGMT_DIR),我运行 make get-pkg
命令来运行适当的 Makefile 指令。执行时,我收到以下错误消息:
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files [files ...]]
yq: error: argument files: can't open 'openAPI.definitions."io.k8s.cli.setters.name".x-k8s-cli.setter.value': [Errno 2] No such file or directory: 'openAPI.defin
itions."io.k8s.cli.setters.name".x-k8s-cli.setter.value'
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files [files ...]]
yq: error: argument files: can't open 'openAPI.definitions."io.k8s.cli.setters.location".x-k8s-cli.setter.value': [Errno 2] No such file or directory: 'openAPI.d
efinitions."io.k8s.cli.setters.location".x-k8s-cli.setter.value'
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files [files ...]]
yq: error: argument files: can't open 'openAPI.definitions."io.k8s.cli.setters.gcloud.core.project".x-k8s-cli.setter.value': [Errno 2] No such file or directory:
'openAPI.definitions."io.k8s.cli.setters.gcloud.core.project".x-k8s-cli.setter.value'
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files [files ...]]
yq: error: argument files: can't open 'openAPI.definitions."io.k8s.cli.setters.name".x-k8s-cli.setter.value': [Errno 2] No such file or directory: 'openAPI.defin
itions."io.k8s.cli.setters.name".x-k8s-cli.setter.value'
mkdir -p ./upstream
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files [files ...]]
yq: error: argument files: can't open 'openAPI.definitions."io.k8s.cli.setters.name".x-k8s-cli.setter.value': [Errno 2] No such file or directory: 'openAPI.defin
itions."io.k8s.cli.setters.name".x-k8s-cli.setter.value'
kpt pkg get https://github.com/kubeflow/gcp-blueprints.git/packages/management@v1.2.0 ./upstream/management
fetching package /packages/management from https://github.com/kubeflow/gcp-blueprints to upstream/management
看起来每条消息都引用了一个不同的“.setters.
”API,它似乎引用了我之前创建的环境变量。我查看了 GitHub 存储库中的“kubeflow/gcp-blueprints/management”,虽然我不确定它有什么不同,但 GitHub 页面上的说明与 Kubeflow 安装指南并不完全相同。主要是这个部分:
Kubeflow 说明:
kpt cfg set -R . name "${MGMT_NAME}"
kpt cfg set -R . gcloud.core.project "${MGMT_PROJECT}"
kpt cfg set -R . location "${LOCATION}"
GitHub 说明:
kpt cfg set -R . name ${NAME}
kpt cfg set -R . gcloud.core.project ${PROJECT}
kpt cfg set -R . location ${LOCATION}
Makefile 中是否有不正确的内容或与之前的 Kubeflow 版本相比有所贬值?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。