ewolff / microservice-kubernetes

Microservices example using Kubernetes
Apache License 2.0
207 stars 194 forks source link

minikube v1.26.0 Windows is unhappy with run command used in kubernetes-deploy.sh #11

Closed parawanderer closed 2 years ago

parawanderer commented 2 years ago

It appears that the current correct way to create deployments in minikube is kubectl create deployment and kubectl run only has the effect of creating a pod.

$ ./kubernetes-deploy.sh 
pod/apache created
Error from server (NotFound): deployments.apps "apache" not found
pod/catalog created
Error from server (NotFound): deployments.apps "catalog" not found
pod/customer created
Error from server (NotFound): deployments.apps "customer" not found
pod/order created
Error from server (NotFound): deployments.apps "order" not found

I'll go ahead and make a PR for this update. The explanation on educative should probably also be updated, though.

ewolff commented 2 years ago

Actually this is a general problem. run is outdated. #12 Fixed this. Thanks!