Now we’ll create our first deployment. For this, we’ll be pulling a test image from the Google Container Registry (GCR) called hello-node. Creating this deployment will come with one pod built-in.
To do this, paste the following line:
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
Now, to check that this deployment is running correctly, enter:
kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
hello-node 1/1 1 1 170m
This will print a list of the deployments currently running on this cluster. As we’ve only created the one, you’ll only see hello-node listed. Congratulations, you’ve deployed your app!