Create a deployment
In this step we will create a new deployment. We will use
nginx web server image for that.
kubectl create deployment nginx --image=nginx.
Above command will create a deplyment from image of
nginx web server.
We can use command
kubectl get deployments to check if our new deployment is created.
If it is successfully created, we get output like one mentioned below.
master $ kubectl get deployments NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE nginx 1 1 1 1 10s
View the details of deployment
kubectl describe deployment nginx to retrieve the details of our newly created deployment. It shows details like name, namespace, selectors and many others.