collabnix / kubelabs

Get Started with Kubernetes
https://kubelabs.collabnix.com
Apache License 2.0
2.73k stars 941 forks source link

Issue while Creating First Deployment #59

Closed ErKiran closed 3 years ago

ErKiran commented 3 years ago

When running the command from this page https://collabnix.github.io/kubelabs/Deployment101/

I get the following error error: unable to recognize "nginx-dep.yaml": no matches for kind "Deployment" in version "apps/v1beta2"

The same issue was also open in dockerlabs https://github.com/collabnix/dockerlabs/issues/311

When tried to run this in terminal


git clone https://github.com/collabnix/dockerlabs
cd dockerlabs/kubernetes/workshop/Deployment101
kubectl create -f nginx-dep.yaml
deployment.apps/nginx-deployment created  
collabnix commented 3 years ago

Change apps/v1betas2 to apps/v1 and that would fix the issue. Watch out https://youtu.be/SgMrzvZGVic