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

kubectl run doesn't create deployment #1

Closed
wangkuiyi opened this issue May 11, 2016 · 1 comment
Closed

kubectl run doesn't create deployment #1

wangkuiyi opened this issue May 11, 2016 · 1 comment

Comments

@wangkuiyi
Copy link
Contributor

wangkuiyi commented May 11, 2016

I tried to follow this tutorial to run Kubernetes on a Vagrant cluster of multiple CoreOS nodes. I can start this cluster. But when I run

kubectl run nginx --image=nginx --port=80

I got only pods but no deployments, which means that kubectl get pods -l run=nginx lists a pod, but kubectl get deployments lists no deployment.

The problem can be recreated by running https://github.com/k8sp/vagrant-coreos/blob/master/run.sh

I have the same problem if I run above experiments on a single-node cluster, as shown in https://github.com/k8sp/vagrant-coreos/blob/master/run-single.sh

@wangkuiyi
Copy link
Contributor Author

Thanks to https://www.linkedin.com/in/xiang-li-402b3440 who pointed out that I was using 1.0.1 Kubernetes client with 1.2.3 server. When I changed to use 1.2.3 client, kubectl run creates the deployment as I expected.

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

1 participant