Creating a Zero-Downtime Deployment
Learn how to create a zero-downtime Deployment using the file defined in the previous lesson.
We'll cover the following...
Creating the deployment
Before we explore rolling updates, we should create the Deployment and, with it, the first release of our application.
Press + to interact
kubectl create -f go-demo-2-api.yml --recordkubectl get -f go-demo-2-api.yml
We create the Deployment and retrieve the object from the Kubernetes API server.
The output of the latter command is as follows:
Press + to interact
NAME DESIRED UP-TO-DATE AVAILABLE AGEgo-demo-2-api 3 3 3 1m
Please make sure that the number of available Pods is 3. Wait for a few moments if that’s not the case. Once all the Pods are up and running, we’ll have a Deployment that will create a new ReplicaSet which will subsequently create three Pods based on the latest release of the vfarcic/go-demo-2
image.
Let’s see ...
Access this course and 1400+ top-rated courses and projects.