Video by freeCodeCamp.org · taught by Bogdan Stashchuk · streamed from YouTube. All rights remain with the creator.
Lesson 4: Kubernetes for Beginners
About this lesson
This beginner course by Bogdan Stashchuk introduces Kubernetes, the system that runs and manages containers across many machines, and it assumes you already know the basics of Docker. It opens by explaining what Kubernetes is and why container orchestration is needed, then introduces the main building blocks one at a time: the pod, the smallest unit Kubernetes runs; the cluster and the nodes it is made of; and services, which give a stable way to reach a changing group of pods. You meet kubectl, the command-line tool used to control a cluster, and see what software the course needs. After installing kubectl and Minikube, which runs a small single-node cluster on your own computer, you create a cluster, explore its node, and create and examine a single pod. The course then creates a deployment, which keeps a requested number of identical pods running, and shows how to connect to one of its pods directly by its IP address. That leads to services: you create a ClusterIP service, reach the deployment through it, and then clean up by deleting the deployment and the service. In the final part you build a small Node.js web application, package it as a Docker image, push the image to Docker Hub, and create a deployment based on your own image. You then scale that deployment to several pods and expose it with a NodePort service so it can be reached from outside the cluster. Afterwards, read Chapter 4 of the course book, which explains each object with a diagram and a table.