Professional Documents
Culture Documents
Application in Kubernetes
n this hands-on lab, we have been given a three-node cluster. Within that cluster, we
must deploy our application and then successfully update the application to a new
version without causing any downtime.
Log in to the Kube Master server using the credentials on the lab page (either in your
local terminal, using the Instant Terminal feature, or using the public IPs), and work
through the objectives listed.
Create and roll out version 1 of the application, and verify a successful deployment.
curl http://<ip-address-of-the-service>
Perform a rolling update to version 2 of the application, and verify its success.
1. Start another terminal session to the same Kube Master server. There, use this
curl loop command to see the version change as you perform the rolling update:
2. Perform the update in the original terminal session (while the curl loop is
running in the new terminal session):
You have been given a three-node cluster. Within that cluster, you must deploy your
application and then successfully update the application to a new version without
causing any downtime. You will use the image linuxacademycontent/kubeserve:v1,
which will serve as your application. You must perform the steps to verify your app
successfully rolled out initially; create a service for your deployment, so it can be used
by the end user; and then perform the update, verifying that the update did not
experience any service interruption for your end users. You must perform the following
tasks in order to complete this hands-on lab:
Create and roll out a deployment, and verify the deployment was successful.
Verify the application is using the correct version.
Scale up your application to create high availability.
Create a service from your deployment, so users can access your application.
Perform a rolling update to version 2 of the application.
Verify the app is now at version 2 and there was no downtime to end users.
Learning Objectives
check_circleCreate and roll out version 1 of the application, and verify a successful
deployment.keyboard_arrow_up
20. Use the following command to verify the deployment was successful:
2. Use the following command to verify the additional replicas have been created:
2. Use the following command to verify the service is present and collect the
cluster IP:
curl http://<ip-address-of-the-service>
check_circlePerform a rolling update to version 2 of the application, and verify its
success.keyboard_arrow_up
1. Use this curl loop command to see the version change as you perform the rolling
update:
2. Use this command to perform the update (while the curl loop is running):
3. Use this command to view the additional ReplicaSet created during the update: