Containers and Cloud Native overview

67 topics in 13 lessons, each in one line. Every topic opens the page that teaches it.

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.

1Why containers, and running your first one

2Running containers

3Building and sharing images

4Why Kubernetes, and what is in a cluster

5Pods and Deployments

6Services and networking

7Configuration and secrets

8Storage

9Scheduling and scaling

10Security in the cluster

11Packaging and delivery

12Operating and fixing a cluster

13The pod that keeps restartingWorked case

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