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

turn validation off with --validate=false #26532

Closed
rhohubbuild opened this issue May 30, 2016 · 3 comments
Closed

turn validation off with --validate=false #26532

rhohubbuild opened this issue May 30, 2016 · 3 comments
Labels
area/kubectl kind/support Categorizes issue or PR as a support question.

Comments

@rhohubbuild
Copy link

rhohubbuild commented May 30, 2016

my host OS ubuntu 16.04, i followed docs
1)http://kubernetes.io/docs/getting-started-guides/docker/
then
2) http://kubernetes.io/docs/getting-started-guides/docker-multinode/deployDNS/

i got error when i try this
3) user@host:~/kubernetes$ kubectl create -f ./skydns.yaml
error validating "./skydns.yaml": error validating data: [unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object]; if you choose to ignore these errors, turn validation off with --validate=false

then i did
4) user@host:~/kubernetes$ kubectl create -f ./skydns.yaml --validate=false
replicationcontroller "kube-dns-v10" created
service "kube-dns" created

Am i going in correct way ?
if not then how to fix this issue (without using --validate=false flag)?

@zhouhaibing089
Copy link
Contributor

I meet this issue before, and it is mostly because I am using an outdated kubectl.

@mikedanese mikedanese added area/kubectl team/ux kind/support Categorizes issue or PR as a support question. labels Jun 1, 2016
@pwittrock
Copy link
Member

Closing this issue. Please re-open if it has not been addressed.

@Dlgde
Copy link

Dlgde commented Jan 27, 2018

i also meet this problem,but before this one ,i kubectl create another successfully,i want to know why this oappears?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubectl kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

5 participants