Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error validating data: ValidationError(CustomResourceDefinition.spec): missing required field "scope" #8

Closed
nowbug opened this issue Aug 7, 2018 · 4 comments

Comments

@nowbug
Copy link

nowbug commented Aug 7, 2018

阿里的大牛你好,我是一个新手,当我使用安装文档时
kubectl create -f arena/kubernetes-artifacts/tf-operator/tf-operator.yaml

遭遇了错误,以下是错误日志,我猜测可能是我环境有问题,不知道能否给出一些建议。
configmap/tf-job-operator-config created
serviceaccount/tf-job-operator created
clusterrole.rbac.authorization.k8s.io/tf-job-operator created
clusterrolebinding.rbac.authorization.k8s.io/tf-job-operator created
clusterrole.rbac.authorization.k8s.io/tf-job-dashboard created
clusterrolebinding.rbac.authorization.k8s.io/tf-job-dashboard created
serviceaccount/tf-job-dashboard created
deployment.extensions/tf-job-dashboard created
error: error validating "arena/kubernetes-artifacts/tf-operator/tf-operator.yaml": error validating data: ValidationError(CustomResourceDefinition.spec): missing required field "scope" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec; if you choose to ignore these errors, turn validation off with --validate=false

@nowbug
Copy link
Author

nowbug commented Aug 7, 2018

我是本地虚拟机搭建 centos7.3+kubernetes1.11

@cheyang
Copy link
Collaborator

cheyang commented Aug 7, 2018

Kubernetes 1.11对于CRD的校验比较苛刻,你可以先尝试一下1.10或者1.9的Kubernetes。我也会给tf-operator开issue,追踪一下这个问题。

@nowbug
Copy link
Author

nowbug commented Aug 8, 2018

感谢,我会尝试使用1.10 or 1.9 再次尝试,这个项目真的很赞。

@cheyang
Copy link
Collaborator

cheyang commented Aug 8, 2018

谢谢,你可以直接在https://www.katacoda.com/courses/kubernetes/playground 上测试。也欢迎您提issue和贡献代码。我试了一下1.10应该是可以的。

master $ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

master $ kubectl create -f arena/kubernetes-artifacts/tf-operator/tf-operator.yaml
configmap "tf-job-operator-config" created
serviceaccount "tf-job-operator" created
clusterrole.rbac.authorization.k8s.io "tf-job-operator" created
clusterrolebinding.rbac.authorization.k8s.io "tf-job-operator" created
clusterrole.rbac.authorization.k8s.io "tf-job-dashboard" created
clusterrolebinding.rbac.authorization.k8s.io "tf-job-dashboard" created
serviceaccount "tf-job-dashboard" created
deployment.extensions "tf-job-dashboard" created
customresourcedefinition.apiextensions.k8s.io "tfjobs.kubeflow.org" created
deployment.extensions "tf-job-operator-v1alpha2" created
service "tf-job-dashboard" created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants