我对 Kubeflow 相当陌生,并且很难按照在 GCP 上部署它的说明进行操作。在完成部署过程的前两个部分后,当被要求使用 Makefile 从 GitHub 下载 Kubeflow 管理集群蓝图时,我卡在了“管理集群设置”。
从管理目录中(根据说明指定为 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,它似乎引用了我之前创建的环境变量。我查看了“ kubeflow/gcp-blueprints/management ”的 GitHub 存储库,虽然我不确定它是否有所不同,但 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 版本贬值的内容?