...

/

Playing Around with the Deployment

Playing Around with the Deployment

Explore deploying a few new releases and play around with the Deployment to explore multiple options.

Deploying new releases

Let’s deploy a few new releases. That will provide us with a broader playground to explore a few additional things we can do with Deployments. Before going into the details, let’s make the necessary Deployment, e.g., go-demo-2-api.

Press + to interact
kubectl set image -f go-demo-2-api.yml api=vfarcic/go-demo-2:3.0 --record
kubectl rollout status -f go-demo-2-api.yml

We update the image to vfarcic/go-demo-2:3.0 and retrieve the rollout status. The last line of the output of the latter command is as follows:

Press + to interact
deployment "go-demo-2-api" successfully rolled out

The Deployment is successfully updated and, as a result, it creates a new ReplicaSet and scales it up to the desired number of replicas. The previously active ReplicaSet is scaled to 0. As a result, we’re running tag 3.0 of ...