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 when trying to run kubectl create command on yaml files #67

Closed
iamcaleberic opened this issue Oct 2, 2017 · 5 comments
Closed
Labels
sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.

Comments

@iamcaleberic
Copy link

iamcaleberic commented Oct 2, 2017

Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"6e937839ac04a38cac63e6a7a306c5d035fe7b0a", GitTreeState:"clean", BuildDate:"2017-09-28T22:57:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-09-18T20:30:29Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:

What happened:
Created a manual secrets file and while trying to create this error is thrown
$ kubectl create -f ./file.yaml

error: error validating "./file.yaml": error validating data: unknown object type schema.GroupVersionKind{Group:"", Version:"v1", Kind:"Secret"}; if you choose to ignore these errors, turn validation off with --validate=false

Retried with the the secrets file in the documentation just to confirm it was not a syntax mistake but same outcome.

kubectl create -f redis.yaml

Also happens with the rest of the service files other than secrets

What you expected to happen:
the expectation was a confirmation that the secret "file" created

or

service "redis" created
replicationcontroller "redis" created

How to reproduce it (as minimally and precisely as possible):
$ kubectl create -f ./file.yaml

Anything else we need to know:

if i turn the validation off everything seems to be fine with the flag validate=false

@iamcaleberic iamcaleberic changed the title Error with manually creating secrets Error when trying to run kubectl create command Oct 2, 2017
@iamcaleberic iamcaleberic changed the title Error when trying to run kubectl create command Error when trying to run kubectl create command on yaml files Oct 2, 2017
@apelisse
Copy link
Member

apelisse commented Oct 2, 2017

@iamcaleberic Could you tell me more about the Kubernetes environment that you're using? is it a minikube server? There is a known limitation against minikube servers kubernetes/minikube#1996 (cf 1.8 release note too)

Let me know if that's NOT what it is.

Thank you,

@apelisse apelisse added the bug label Oct 2, 2017
@pwittrock
Copy link
Member

@mbohlool can you follow up on this

cc @k8s-mirror-api-machinery-bugs

@pwittrock pwittrock added the sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. label Oct 2, 2017
@mbohlool
Copy link

mbohlool commented Oct 2, 2017

@pwittrock Sure. I will wait for @apelisse question to be answered. Most probably this is minikube but will look further if it is not.

@iamcaleberic
Copy link
Author

iamcaleberic commented Oct 4, 2017

@apelisse yes I am running a minikube server...
The version output is minikube version: v0.22.2

@apelisse
Copy link
Member

apelisse commented Oct 4, 2017

I'm so glad to hear that! :-)

I'm closing this issue, let's follow up on kubernetes/minikube#1996

Thank you

@apelisse apelisse closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.
Projects
None yet
Development

No branches or pull requests

4 participants