我是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
看起来每个消息都引用了不同的";CCD_ 2";API似乎引用了我之前创建的环境变量。我查看了GitHub的repo;kubeflow/gcp蓝图/管理;虽然我不确定这有什么不同,但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版本中贬值的内容?
yq
有两种不同的实现:
- yq(用Go编写(
- yq(用Python编写(
语法非常相似,但并不完全相同,每个版本都有自己的参数。该错误表示使用了错误的实现。