
Learn the basics of Kubernetes by deploying a JavaScript app, understand parts, services, replica sets, and deployments, and build and push a Docker image to a registry.
Use this real world analogy to see Kubernetes as a manager who keeps at least two workers—one to hand over keys and one to clean—so the site stays up.
Deploy an etch demo game that records reaction time by clicking boxes, with a simple JavaScript setup and shapes that appear every two seconds in Kubernetes.
Identify essential tools for the course, including a cluster management tool, docker for deploying apps, and Visual Studio as an optional IDE, with macOS and Windows installation options.
Learn how a pod serves as the basic Kubernetes unit, wrapping one or more containers and managing them, with built-in failover to other machines when issues arise.
Learn how replica sets address the single-pod limitation for production systems by ensuring a defined number of pods run and auto-recover on failures, with deployments preferred over standalone replicas.
Learn how deployments automate updating your app and rolling back to older versions with zero downtime, eliminating manual replica set steps for seamless version management.
Learn why containers fix dependency issues by packaging an app with its dependencies into a self-contained container. Discover how Docker creates images from Dockerfiles and runs containers.
Create a Docker image from a Dockerfile to run your app in a local container, including setting up a Docker Hub account, logging in, and building and tagging the image.
Push your Docker image to Docker Hub by tagging the local image, pushing to a repository, and verifying on Docker Hub to enable remote access.
Learn to write and run a Kubernetes pod from a yaml definition, including api version, metadata, labels, name, and image, and track the container as it starts.
Configure a Kubernetes service to expose your app, using a node port to forward external requests to the running container.
Discover the drawbacks of running a pod by itself and how a replica set automates recovery, illustrating why running a pod alone is not recommended.
Deploy a replicaset to automatically maintain the desired number of pods and replace crashed ones, using api version app/v1, with a selector and a pod template.
The drawback of a replica set is downtime during updates, because updating the image can kill the current pod and interrupt the service. Deployment avoids this issue.
Deployments enable zero-downtime rollouts by updating apps with a min ready seconds setting before switching versions. They wrap a replica set and automate rolling updates.
Perform a rolling update in a Kubernetes deployment to upgrade a game with zero downtime using a new image version, with an easy rollback.
Explore Kubernetes resources—services, replica sets, and deployments—and learn the advantages of replica sets and deployments, build a Docker image from a Dockerfile and push it to a remote registry.
In this course you will learn the basics of Kubernetes in a hands on manner in 1 hour by deploying your first application in the form of a Javascript game.
Kubernetes is an open-source container orchestration system to automate application deployment, scaling and management. Imagine you write your application and push your code. Then Kubernetes will take care of ensuring it is running at all times to serve your users. Kubernetes is being extensively used these days and its popularity is growing at a high speed.
This course will give you a head start in learning Kubernetes by going through the basic resources of Kubernetes such as:
Pod
Service
Replicaset
Deployment
You will learn how to write and run the above resources by deploying a Javascript game. You will also get a reasonable introduction on Docker including:
What is Docker image
How to write Dockerfile to create an image
How to push the image to a remote registry
This course is mainly designed keeping complete beginners in mind although intermediate users may find the example useful. By the end of the course you will have a basic foundation on Kubernetes to go ahead and learn intermediate and more advanced concepts.