Foundations13 lessons · about 6 hoursVery High complexity

Containers and Cloud Native

How applications are packaged as containers and run on Kubernetes, from one isolated process to operating a cluster, to the depth of the CKA. Twelve lessons, each one drawing at a time, and each with a lab you can run on your own machine, because the Kubernetes exams are taken at a terminal. A worked case at the end puts the whole course to work on one realistic problem. Press the down arrow on any page marked Go deeper for the detail and the lab.

After this course you can

  • Explain what a container is, build a small image and run several containers together.
  • Read and write the Kubernetes objects that run, expose, configure and store an application.
  • Find out why a workload is not running, and fix it with kubectl, the way the hands-on exams expect.

Lessons

13 lessons

Certifications

3 exams · 1 exam course open

When you have finished the lessons, take the exam course for the certification you want. This course teaches the subject to the depth of the hardest exam below; each exam course adds only what its exam asks on top: the vendor's own names, services and limits, and how the questions are built.

KCNA Kubernetes and Cloud Native AssociateCNCF · Foundational · Moderate 8 lessons
CKAD Certified Kubernetes Application DeveloperCNCF · Associate · Very High Exam course coming
CKA Certified Kubernetes AdministratorCNCF · Associate · Very High Exam course coming

Sources and credit

49 sources

The chapters and drawings are written by NeuroqAI from these sources. Each lesson lists its own at the end of its chapter, and figures on the pages are taken from them or computed from them.

Kubernetes documentation27 sourcesContainer runtimescontainerd, CRI-O and the removal of dockershimLesson 1Cluster architectureControl plane, nodes and controllersLesson 4Kubernetes componentsAPI server, etcd, scheduler, kubelet and the restLesson 4PodsThe smallest thing Kubernetes runsLesson 5DeploymentsRolling updates, maxSurge and maxUnavailableLesson 5StatefulSetsPods with stable names and their own storageLessons 5, 8ServiceOne stable address in front of changing podsLesson 6IngressHTTP routing into the clusterLesson 6Gateway APIThe successor to IngressLesson 6Network policiesWhich pods may talk to whichLesson 6ConfigMapsSettings kept outside the imageLesson 7SecretsAnd why they are not encrypted by defaultLesson 7Resource management for pods and containersRequests, limits and what happens when memory runs outLessons 7, 13Persistent volumesClaims, binding, access modes and reclaim policiesLesson 8Storage classesDisks created on demandLesson 8Kubernetes schedulerFiltering and scoring nodes for each podLesson 9Taints and tolerationsKeeping pods off nodes, or on themLesson 9Horizontal pod autoscalingThe formula that sets the replica countLesson 9Using RBAC authorizationRoles and bindings for people and service accountsLesson 10Pod Security StandardsPrivileged, baseline and restrictedLesson 10Declarative management using KustomizeOne base, small changes per environmentLesson 11Debug podsWhat to look at when a pod will not runLessons 12, 13Liveness, readiness and startup probesHow Kubernetes decides a container is healthyLessons 12, 13Upgrading kubeadm clustersOne minor version at a time, control plane firstLesson 12Operating etcd clusters for KubernetesSnapshot and restore the cluster's memoryLesson 12Pod lifecycleContainer states, restart policy and the CrashLoopBackOff back-offLesson 13DeploymentsRolling updates, maxSurge and maxUnavailable, and rollbacksLesson 13
Docker7 sourcesdocker container runPorts, volumes, limits and environment at run timeLessons 1, 2VolumesData that outlives the containerLesson 2Networking overviewBridge networks and published portsLesson 2Compose file referenceSeveral containers described in one fileLesson 2Dockerfile referenceEvery instruction and what it adds to an imageLesson 3Building best practicesSmall images, good cache use, no secrets in layersLesson 3Multi-stage buildsBuild in one image, ship from a small oneLesson 3
Standards, research and other publishers15 sourcesnamespaces(7) · Linux man-pages (man7.org)The walls a container is built fromLesson 1cgroups(7) · Linux man-pages (man7.org)Limits on CPU, memory and processesLesson 1Open Container Initiative specifications · Open Container InitiativeThe image, runtime and distribution standards every tool sharesLessons 1, 3Kubernetes and Cloud Native Associate (KCNA) · The Linux FoundationThe domains of the KCNA examLessons 1, 3, 4, 5, 6, 7, 8, 9, 10, 11Distroless container images · GoogleImages with only your app and its runtimeLesson 3Kubernetes overview · The Kubernetes AuthorsWhat Kubernetes does and does not do, from the project itselfLesson 4kind · Kubernetes SIGsA whole cluster in containers on your laptopLesson 4Certified Kubernetes Administrator (CKA) · The Linux FoundationThe hands-on administrator exam this course prepares forLessons 4, 5, 6, 7, 8, 9, 10, 12Trivy · Aqua SecurityScan images for known vulnerabilitiesLesson 10Sigstore documentation · SigstoreSign images and verify them before they runLesson 10Helm documentation · HelmCharts, values, upgrades and rollbacksLesson 11Argo CD documentation · Argo ProjectGit as the source of truth for a clusterLesson 11OpenGitOps principles · OpenGitOps (CNCF)The four principles of GitOpsLesson 11CNCF projects · Cloud Native Computing FoundationSandbox, incubating and graduated projectsLesson 11Current account payments may fail: major outage (postmortem) · Monzo communityMonzo’s own account of a Kubernetes and linkerd outage, by its head of engineeringLesson 13