---
title: "Kubernetes roadmap"
description: "A step-by-step Kubernetes roadmap: from containers and Pods to networking, storage, GitOps, autoscaling, security, cluster operations and operators."
url: "https://opsfolk.com/roadmaps/kubernetes"
stages: 11
topics: 61
updated: "2026-11-14T18:58:28.659Z"
reviewed: "2026-11-14"
image: "https://media.opsfolk.com/2026/11/97d4e1ebce718c9ff5c94f0b-2400x1350.webp"
---

# Kubernetes roadmap

Learn Kubernetes in order: containers and the cluster's parts, then workloads, configuration, networking, storage, delivery, scaling, security, observability, running a cluster and extending it.

Learn it in this order: each stage builds on the ones before it. A topic marked optional can wait.

## 1. Foundations

Containers, what Kubernetes is for, the parts of a cluster and your first commands.

### Containers

What an image and a container are: the unit Kubernetes schedules and runs.

A container is a process isolated with Linux namespaces and cgroups, started from an image: a read-only bundle of a program and everything it needs. Images follow the OCI standard, so one built with Docker, Podman or Buildah runs anywhere.

Kubernetes does not run containers itself. The kubelet on each node asks a container runtime such as containerd or CRI-O to do it, through the Container Runtime Interface. Know how to build an image, tag it, push it to a registry and run it before going further.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Containers, in the Kubernetes documentation](https://kubernetes.io/docs/concepts/containers/)
- Official: [Container images](https://kubernetes.io/docs/concepts/containers/images/)
- Official: [Open Container Initiative](https://opencontainers.org/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/containers

### Why Kubernetes

The problems an orchestrator solves, and when it is more than you need.

Running one container is easy. Running hundreds across many machines, restarting them when they fail, rolling out new versions without downtime and sending traffic only to healthy copies is not. Kubernetes does this from a description of what you want, and keeps working until the cluster matches it.

It also costs something: a cluster to run, a lot of concepts, and YAML to maintain. A single small service may be better on a plain VM or a serverless platform. Knowing why you reach for Kubernetes helps you judge which parts of it you need.

On this site:

- Certification: [Kubernetes and Cloud Native Associate (KCNA)](https://opsfolk.com/certifications/kubernetes-and-cloud-native-associate-kcna.md)

Elsewhere:

- Official: [Overview of Kubernetes](https://kubernetes.io/docs/concepts/overview/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/why-kubernetes

### Cluster architecture

The control plane, the nodes, and what each component does.

A cluster has a control plane and worker nodes. The control plane holds the API server, the only component that talks to etcd, where all state is stored; the scheduler, which picks a node for each new Pod; and the controller manager, which runs the loops that make the cluster match what was asked for.

Each node runs the kubelet, which starts and watches the Pods given to it, a container runtime, and usually kube-proxy for Service traffic. Everything goes through the API server: knowing that explains most of how Kubernetes behaves.

On this site:

- Series: [Kubernetes Internals: How a Cluster Really Works](https://opsfolk.com/blog/series/kubernetes-internals-how-a-cluster-really-works) (9 parts)
- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)

Elsewhere:

- Official: [Cluster architecture](https://kubernetes.io/docs/concepts/architecture/)
- Official: [Kubernetes components](https://kubernetes.io/docs/concepts/overview/components/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/cluster-architecture

### Objects, labels and namespaces

Desired state as objects, how labels tie them together, and how namespaces divide a cluster.

Everything in Kubernetes is an object with a `spec`, what you want, and a `status`, what is true now. You write objects as YAML manifests and send them to the API server; controllers then work to close the gap.

Labels are key-value pairs on objects, and selectors pick objects by them: that is how a Service finds its Pods and a Deployment its ReplicaSets. Namespaces split one cluster into named groups, for teams or environments, and are where quotas and many permissions apply.

On this site:

- Quiz: [KCNA practice: Kubernetes and cloud native basics](https://opsfolk.com/quizzes/kcna-practice-basics) (40 questions)

Elsewhere:

- Official: [Objects in Kubernetes](https://kubernetes.io/docs/concepts/overview/working-with-objects/)
- Official: [Labels and selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)
- Official: [Namespaces](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/objects-labels-and-namespaces

### kubectl

The command line for the cluster: get, describe, apply, logs and exec.

kubectl is how you talk to the API server. Learn `get` and `describe` to read, `apply -f` to send manifests, `logs` and `exec` to look inside a container, and `explain` to read a field's documentation without leaving the shell.

It reads its clusters and credentials from a kubeconfig file, and a context picks which one you use. Speed with kubectl matters: the CKA and CKAD are two hours of typing it. Use `--dry-run=client -o yaml` to generate a manifest instead of writing it from scratch.

On this site:

- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)

Elsewhere:

- Official: [kubectl reference](https://kubernetes.io/docs/reference/kubectl/)
- Official: [kubectl quick reference](https://kubernetes.io/docs/reference/kubectl/quick-reference/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/kubectl

### A local cluster

A cluster on your own machine to practise on, with kind or minikube.

You learn Kubernetes by doing, so get a cluster you can break. kind runs a whole cluster inside Docker containers and starts in under a minute; minikube runs one in a VM or a container, with add-ons for things like Ingress and metrics. Both are free and throw-away.

If you would rather install nothing, the Kubernetes playground on this site gives you a real cluster in the browser. Whichever you choose, recreate it often: a fresh cluster is the quickest way to undo a mistake.

On this site:

- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)

Elsewhere:

- Official: [Install the tools](https://kubernetes.io/docs/tasks/tools/)
- Official: [kind](https://kind.sigs.k8s.io/)
- Official: [minikube](https://minikube.sigs.k8s.io/docs/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/local-cluster

## 2. Running applications

Pods and the controllers that keep them running.

### Pods

The smallest thing Kubernetes runs: one or more containers that share a network and storage.

A Pod is one or more containers scheduled together on one node, sharing an IP address and volumes. Most Pods hold one container; a second is for a helper that has to live beside it, such as a log shipper or a proxy.

Pods are disposable: when one dies it is not repaired but replaced, with a new name and a new IP. That is why you rarely create Pods yourself, and instead let a controller create them. Learn the Pod's lifecycle and phases, since every workload resource is a way to manage Pods.

On this site:

- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)
- Quiz: [CKA practice: Kubernetes administration basics](https://opsfolk.com/quizzes/cka-practice-basics) (40 questions)

Elsewhere:

- Official: [Pods](https://kubernetes.io/docs/concepts/workloads/pods/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/pods

### Init and sidecar containers (optional)

Containers that run before the app, or beside it for its whole life.

An init container runs to completion before the app's containers start: to wait for a database, fetch a file or set permissions. A sidecar container starts before the app and keeps running beside it, for a proxy, a log shipper or a certificate refresher.

Since Kubernetes 1.29 a sidecar is declared as an init container with `restartPolicy: Always`, so it starts first and stops last. These patterns are part of the CKAD's application design domain.

On this site:

- Certification: [Certified Kubernetes Application Developer (CKAD)](https://opsfolk.com/certifications/certified-kubernetes-application-developer-ckad.md)

Elsewhere:

- Official: [Init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/)
- Official: [Sidecar containers](https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/init-and-sidecar-containers

### ReplicaSets

Keeps a given number of identical Pods running.

A ReplicaSet watches the Pods that match its selector and creates or deletes Pods until their number is what `replicas` says. It is the first controller most people meet, and it shows the pattern every controller follows: compare what is with what was asked for, and act on the difference.

You seldom write a ReplicaSet yourself. A Deployment creates and manages them for you, one per version of your Pod template, which is what makes rollouts and rollbacks possible.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [ReplicaSet](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/replicasets

### Deployments

The usual way to run a stateless application, with rollouts and rollbacks.

A Deployment describes a Pod template and a number of replicas. Change the template, such as its image, and the Deployment makes a new ReplicaSet and moves Pods over to it a few at a time, keeping the old one around so you can roll back.

Most stateless services run as Deployments. Learn to create one, scale it, update its image, watch the rollout with `kubectl rollout status` and undo it. The YAML generator on this site writes a Deployment and its Service from a form.

On this site:

- Tool: [Kubernetes YAML generator](https://opsfolk.com/tools/kubernetes-yaml-generator)
- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)
- Quiz: [CKA practice: Kubernetes administration basics](https://opsfolk.com/quizzes/cka-practice-basics) (40 questions)

Elsewhere:

- Official: [Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/deployments

### StatefulSets

For Pods that need a stable name, a stable network identity and their own storage.

A database replica is not interchangeable with its neighbour: it has its own data and others must be able to find it by name. A StatefulSet gives each Pod a fixed ordinal name (`db-0`, `db-1`), a stable DNS name through a headless Service, and its own PersistentVolumeClaim that follows it when it is rescheduled.

Pods are created and updated in order. Running stateful systems on Kubernetes is harder than running stateless ones, and an operator often manages the StatefulSet for you.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [StatefulSets](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/statefulsets

### DaemonSets

One Pod on every node, for agents such as log collectors and network plugins.

A DaemonSet runs a copy of a Pod on every node, or on every node that matches a selector, and adds one when a node joins. It is how cluster agents are deployed: log collectors, monitoring exporters, storage and network plugins, and often kube-proxy itself.

DaemonSet Pods usually tolerate the taints that keep ordinary workloads off control plane nodes, so knowing taints and tolerations helps here.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [DaemonSet](https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/daemonsets

### Jobs and CronJobs

Work that runs to completion, once or on a schedule.

A Job runs Pods until a given number of them succeed, retrying failures up to `backoffLimit`: for a migration, a batch import or a report. It can run Pods in parallel, and an indexed Job gives each one a number to split the work by.

A CronJob creates a Job on a schedule written in cron syntax. Watch its `concurrencyPolicy`, which says what happens when a run is still going at the next tick, and the history limits, which keep old Jobs from piling up.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/job/)
- Official: [CronJob](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/jobs-and-cronjobs

## 3. Configuration and resources

Settings, secrets, health checks and the CPU and memory a workload asks for.

### ConfigMaps

Settings kept outside the image, given to a Pod as variables or files.

A ConfigMap holds non-secret configuration as key-value pairs or whole files, so one image can run in every environment. A Pod reads it as environment variables, through `envFrom` or `valueFrom`, or as files in a mounted volume.

Files from a mounted ConfigMap are updated in place after a change, a little later; environment variables are not, and need a restart of the Pod. Many teams put a hash of the ConfigMap in the Pod template so a change rolls the Deployment.

On this site:

- Tool: [Kubernetes YAML generator](https://opsfolk.com/tools/kubernetes-yaml-generator)

Elsewhere:

- Official: [ConfigMaps](https://kubernetes.io/docs/concepts/configuration/configmap/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/configmaps

### Secrets

Passwords, tokens and keys, given to Pods the way ConfigMaps are.

A Secret is used like a ConfigMap but meant for sensitive values, and Kubernetes treats it more carefully: it can be encrypted at rest in etcd, and is only sent to nodes that run a Pod which needs it.

Its values are base64, which is an encoding, not encryption: anyone who can read the Secret can read the value. Limit who may `get` Secrets with RBAC, turn on encryption at rest, and consider an external store such as Vault or a cloud's secret manager with the External Secrets Operator.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Secrets](https://kubernetes.io/docs/concepts/configuration/secret/)
- Official: [Good practices for Secrets](https://kubernetes.io/docs/concepts/security/secrets-good-practices/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/secrets

### Requests and limits

The CPU and memory a container asks for and may not exceed, and the QoS class they give it.

A request is what the scheduler reserves for a container on a node; a limit is the most it may use. Go over a CPU limit and the container is throttled; go over a memory limit and it is killed.

The pair also decides the Pod's QoS class, Guaranteed, Burstable or BestEffort, which sets the order Pods are evicted in when a node runs short. The resource calculator on this site shows how much of a node is left for Pods after the system's share, and what each Pod's requests come to.

On this site:

- Tool: [Kubernetes resource calculator](https://opsfolk.com/tools/kubernetes-resource-calculator)

Elsewhere:

- Official: [Resource management for Pods and containers](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
- Official: [Pod quality of service classes](https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/requests-and-limits

### Probes

Liveness, readiness and startup checks that tell Kubernetes whether a container is healthy.

A readiness probe says whether a container should get traffic: while it fails, the Pod is taken out of its Services. A liveness probe says whether it should be restarted. A startup probe holds the other two off until a slow application has started.

A probe can be an HTTP request, a TCP connection, a gRPC call or a command. A liveness probe that checks a dependency, such as the database, is a common mistake: when the database is down every Pod restarts, and nothing gets better.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Liveness, readiness and startup probes](https://kubernetes.io/docs/concepts/configuration/liveness-readiness-startup-probes/)
- Official: [Configure probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/probes

### Resource quotas and limit ranges (optional)

Caps on what a namespace may use, and defaults for containers that set nothing.

A ResourceQuota caps what a whole namespace may use: total CPU and memory requests and limits, and how many Pods, Services or volume claims it may have. It is how a shared cluster stops one team from taking it all.

A LimitRange sets defaults and bounds for each container in a namespace, so a Pod with no requests gets some. Once a quota covers CPU or memory, a Pod without requests is refused, which is why the two are used together.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Resource quotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/)
- Official: [Limit ranges](https://kubernetes.io/docs/concepts/policy/limit-range/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/resource-quotas-and-limit-ranges

## 4. Services and networking

How Pods reach each other and how traffic gets in.

### The networking model

Every Pod gets its own IP and can reach every other Pod, with no NAT.

Kubernetes asks for a flat network: each Pod has its own IP, and any Pod can reach any other on any node without address translation. It does not build that network itself. A CNI plugin, such as Calico, Cilium or Flannel, wires up each Pod's interface and the routes between nodes.

Containers in one Pod share its IP and talk over `localhost`. Knowing which layer does what, the CNI plugin for Pods and kube-proxy or its replacement for Services, is most of debugging a network problem.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Cluster networking](https://kubernetes.io/docs/concepts/cluster-administration/networking/)
- Official: [Services, load balancing and networking](https://kubernetes.io/docs/concepts/services-networking/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/networking-model

### Services

A stable address in front of a changing set of Pods: ClusterIP, NodePort and LoadBalancer.

Pods come and go with new IPs, so clients need something that stays. A Service selects Pods by label and gives them one virtual IP and DNS name, spreading connections across the Pods that are ready.

A ClusterIP Service is reachable inside the cluster only. NodePort opens the same port on every node; LoadBalancer asks the cloud for an external load balancer in front of that. A headless Service, with no IP, returns the Pods' own addresses, which StatefulSets use.

On this site:

- Tool: [Kubernetes YAML generator](https://opsfolk.com/tools/kubernetes-yaml-generator)
- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)
- Quiz: [CKA practice: Kubernetes administration basics](https://opsfolk.com/quizzes/cka-practice-basics) (40 questions)

Elsewhere:

- Official: [Service](https://kubernetes.io/docs/concepts/services-networking/service/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/services

### DNS in the cluster

How Pods find Services by name through CoreDNS.

CoreDNS gives each Service a name of the form `name.namespace.svc.cluster.local`, so a Pod in the same namespace can reach it by its short name alone. A Pod's `/etc/resolv.conf` is set up to search its own namespace first.

When something cannot reach a Service, check the name resolves before anything else: `nslookup` from a debug Pod settles it quickly. Names with few dots go through every search domain first, which is why some clients look up names slowly.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [DNS for Services and Pods](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/cluster-dns

### Ingress and the Gateway API

HTTP routing from outside the cluster to Services, by host and path.

An Ingress routes HTTP and HTTPS from outside to Services by host name and path, and ends TLS. It needs an Ingress controller running in the cluster to do the work; the resource alone does nothing.

The Gateway API is its successor: a Gateway is the entry point an operator owns, and HTTPRoutes are the rules each team attaches to it. It covers what Ingress needed annotations for, such as splitting traffic by weight and matching headers. New clusters should start with it, and the CKA now asks for both.

On this site:

- Certification: [Certified Kubernetes Administrator (CKA)](https://opsfolk.com/certifications/certified-kubernetes-administrator-cka.md)

Elsewhere:

- Official: [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/)
- Official: [Gateway API, in the Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/gateway/)
- Official: [Gateway API project](https://gateway-api.sigs.k8s.io/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/ingress-and-gateway-api

### Network policies

Rules for which Pods may talk to which, a firewall at the Pod level.

By default every Pod can reach every other. A NetworkPolicy selects Pods and lists the traffic allowed in, out or both, by Pod labels, namespaces or IP ranges. Once a Pod is selected by a policy for a direction, everything not allowed in that direction is refused.

A common start is a default-deny policy per namespace, then one policy per allowed path. Policies are enforced by the CNI plugin, and one that does not support them ignores them without a word.

On this site:

- Certification: [Certified Kubernetes Security Specialist (CKS)](https://opsfolk.com/certifications/certified-kubernetes-security-specialist-cks.md)

Elsewhere:

- Official: [Network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/network-policies

## 5. Storage

Data that outlives a Pod.

### Volumes

Storage mounted into a Pod's containers: scratch space, config files, or a disk.

A container's own filesystem is lost when it restarts. A volume is storage declared on the Pod and mounted into its containers. Some last as long as the Pod: `emptyDir` for scratch space shared between containers, `configMap` and `secret` for files. Others point at storage that outlives it, through a PersistentVolumeClaim.

A `hostPath` volume mounts a directory of the node, which ties the Pod to that node and is a security risk: keep it for system agents.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/volumes

### Persistent volumes and claims

A claim asks for storage, a StorageClass provisions it, and a volume holds it.

A PersistentVolumeClaim asks for storage of a size and access mode, such as ReadWriteOnce. A StorageClass says how to provision it, and creates a PersistentVolume, a real disk, when a claim needs one. The Pod mounts the claim and never needs to know which disk it got.

Learn the access modes, the reclaim policy, which says whether the disk is kept or deleted with its claim, and `volumeBindingMode: WaitForFirstConsumer`, which creates the disk in the zone the Pod lands in.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Persistent volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)
- Official: [Storage classes](https://kubernetes.io/docs/concepts/storage/storage-classes/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/persistent-volumes-and-claims

### CSI drivers (optional)

The plugins that connect Kubernetes to each storage system.

The Container Storage Interface is how storage vendors plug into Kubernetes without changing its code. A CSI driver runs in the cluster and does the provisioning, attaching and mounting for its system: a cloud's block disks, a network file system, or a distributed store such as Ceph.

You mostly meet a driver through the StorageClass that names it. Drivers also bring volume snapshots and resizing, so what your storage can do depends on its driver.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Kubernetes CSI documentation](https://kubernetes-csi.github.io/docs/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/csi-drivers

## 6. Delivery

Shipping changes safely: rollouts, packaging and GitOps.

### Rolling updates and rollbacks

Replacing Pods a few at a time, and going back when a release is bad.

A Deployment's default strategy replaces old Pods with new ones in steps. `maxSurge` says how many extra Pods may exist during the update, and `maxUnavailable` how many may be missing; readiness probes decide when each new Pod counts.

`kubectl rollout undo` returns to the previous ReplicaSet, and `rollout history` lists the ones kept. A rollout that stops making progress is marked failed after `progressDeadlineSeconds`, but it is not rolled back for you.

On this site:

- Quiz: [CKA practice: Kubernetes administration basics](https://opsfolk.com/quizzes/cka-practice-basics) (40 questions)

Elsewhere:

- Official: [Updating a Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/rolling-updates-and-rollbacks

### Blue-green deployments

Run the new version beside the old, then switch all traffic at once.

In a blue-green release the new version, green, runs in full beside the live one, blue. Once green is tested, traffic moves to it in one step, and moving back is just as quick, since blue is still running.

In Kubernetes the switch is often a Service's selector changed from one label to another, or a route's backend in the Gateway API. It costs double the capacity for a while, and the database has to work with both versions at once.

On this site:

- Article: [Blue-Green Deployment Explained: Zero-Downtime Releases with Instant Rollback](https://opsfolk.com/blog/blue-green-deployment.md) (18 min read)
- Certification: [Certified Kubernetes Application Developer (CKAD)](https://opsfolk.com/certifications/certified-kubernetes-application-developer-ckad.md)

Elsewhere:

- Official: [Argo Rollouts](https://argo-rollouts.readthedocs.io/en/stable/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/blue-green-deployments

### Canary deployments

Send a small share of traffic to the new version, and widen it while it behaves.

A canary release sends a small share of real traffic to the new version, watches its errors and latency, and widens the share step by step, or rolls back. Problems reach a few users instead of all of them.

The simplest canary is a second Deployment behind the same Service, with the share set by replica counts. Precise percentages need weighted routes in the Gateway API or a service mesh, and tools such as Argo Rollouts and Flagger automate the steps and the analysis.

On this site:

- Certification: [Certified Kubernetes Application Developer (CKAD)](https://opsfolk.com/certifications/certified-kubernetes-application-developer-ckad.md)

Elsewhere:

- Official: [Argo Rollouts](https://argo-rollouts.readthedocs.io/en/stable/)
- Official: [Flagger](https://docs.flagger.app/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/canary-deployments

### Helm

A package manager: charts of templated manifests, installed and upgraded as releases.

A Helm chart is a set of templated manifests with a `values.yaml` of defaults. `helm install` renders it with your values and records the result as a release, which `helm upgrade` and `helm rollback` then manage.

Most third-party software, such as ingress controllers and monitoring stacks, is published as a chart. Learn to install one with your own values, to read what it will create with `helm template`, and to write a small chart of your own.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Helm documentation](https://helm.sh/docs/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/helm

### Kustomize

Plain manifests with patches per environment, built into kubectl.

Kustomize keeps manifests as plain YAML and layers changes on top: a base, then an overlay per environment that patches it, adds labels, changes images or makes ConfigMaps from files. There are no templates to learn.

It is built into kubectl as `kubectl apply -k`. Helm and Kustomize are often used together: a chart for third-party software, Kustomize for your own services. The CKA and CKAD both expect you to use each.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Managing objects with Kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/kustomize

### GitOps

A Git repository as the source of truth, which an agent in the cluster keeps applied.

In GitOps the cluster's desired state lives in a Git repository, and an agent inside the cluster, such as Argo CD or Flux, pulls it and applies it, then keeps correcting any drift. A change is a commit, a review is a pull request, and a rollback is a revert.

Your CI pipeline builds and tests the image and updates its tag in the repository; it no longer needs credentials to the cluster. Start by putting one application under Argo CD or Flux and watching it heal a manual change.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OpenGitOps principles](https://opengitops.dev/)
- Official: [Argo CD](https://argo-cd.readthedocs.io/en/stable/)
- Official: [Flux](https://fluxcd.io/flux/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/gitops

## 7. Scheduling and scaling

Where Pods run, and how many of them and of the nodes there are.

### The scheduler

How kube-scheduler filters nodes, scores them, and binds a Pod to one.

When a Pod has no node, kube-scheduler picks one in two steps. Filtering removes nodes that cannot run it: not enough free requests, a taint it does not tolerate, a selector it does not match. Scoring ranks the rest, for spreading, affinity and image locality, and the best one is bound to the Pod.

A Pod stuck in Pending is almost always a scheduling problem, and `kubectl describe pod` lists the reasons each node was turned down.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)

Elsewhere:

- Official: [Kubernetes scheduler](https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/scheduler

### Node selection and affinity

Putting Pods on certain nodes, or near or away from other Pods.

`nodeSelector` limits a Pod to nodes with given labels, such as a GPU type. Node affinity says the same with more operators, and can be a preference rather than a rule.

Pod affinity places a Pod near Pods with given labels, such as a cache beside its app; Pod anti-affinity keeps it away from them, such as two replicas never on one node. Required rules can leave Pods Pending when nothing fits, so prefer preferences unless you mean it.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Assigning Pods to nodes](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/node-selection-and-affinity

### Taints and tolerations

Keeping Pods off nodes unless they are allowed there.

Affinity pulls Pods towards nodes; a taint pushes them away. A node with a taint takes only Pods with a matching toleration. That is how control plane nodes keep ordinary workloads off, and how you reserve nodes, such as GPU machines, for the Pods that need them.

The effect `NoSchedule` stops new Pods, and `NoExecute` also evicts running ones. Kubernetes taints nodes itself when they are unreachable or under pressure. A toleration lets a Pod onto a node but does not send it there: pair it with affinity.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Taints and tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/taints-and-tolerations

### Topology spread constraints (optional)

Spreading replicas evenly across zones and nodes.

Three replicas in one zone are lost together when the zone fails. A topology spread constraint tells the scheduler to keep the number of matching Pods per zone, or per node, within `maxSkew` of each other.

With `whenUnsatisfiable: DoNotSchedule` it is a rule; with `ScheduleAnyway` it is a preference. It works from node labels such as `topology.kubernetes.io/zone`, and it balances when Pods are scheduled, not afterwards.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Pod topology spread constraints](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/topology-spread-constraints

### Priority, preemption and eviction (optional)

Which Pods give way when there is not room, and why a node evicts.

A PriorityClass gives Pods a priority. When a high-priority Pod cannot be scheduled, the scheduler may preempt, evicting lower-priority Pods to make room. Give system and critical services a high one; leave batch work low.

A node also evicts Pods on its own when it runs short of memory, disk or process IDs, starting with Pods using more than they requested, by QoS class and priority. PodDisruptionBudgets limit how many Pods voluntary evictions, such as a node drain, may take at once.

On this site:

- Tool: [Kubernetes resource calculator](https://opsfolk.com/tools/kubernetes-resource-calculator)

Elsewhere:

- Official: [Pod priority and preemption](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/)
- Official: [Node-pressure eviction](https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/priority-preemption-and-eviction

### Horizontal Pod autoscaling

More replicas when load rises, fewer when it falls.

A HorizontalPodAutoscaler changes a Deployment's or StatefulSet's replica count to keep a metric near a target, most often CPU use as a share of requests. Without requests set, CPU-based scaling cannot work.

It needs metrics-server for CPU and memory, and an adapter such as KEDA or the Prometheus adapter for custom metrics like queue length. Its `behavior` settings slow scaling down, so a short dip does not drop Pods it will need again a minute later.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Horizontal Pod autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
- Official: [Autoscaling workloads](https://kubernetes.io/docs/concepts/workloads/autoscaling/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/horizontal-pod-autoscaling

### Vertical Pod autoscaling (optional)

Requests that follow what a workload really uses.

The Vertical Pod Autoscaler watches what containers use and recommends, or sets, their CPU and memory requests. It is useful when you do not know what a workload needs, and to stop over-provisioning.

It is an add-on, not part of Kubernetes itself. Run it in recommendation mode first and read what it suggests. Do not let it and a HorizontalPodAutoscaler both act on CPU for the same workload: they fight.

On this site:

- Tool: [Kubernetes resource calculator](https://opsfolk.com/tools/kubernetes-resource-calculator)

Elsewhere:

- Official: [Vertical Pod Autoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/vertical-pod-autoscaling

### Cluster autoscaling

Adding nodes when Pods cannot fit, and removing idle ones.

Pod autoscaling needs room to put new Pods. A node autoscaler watches for Pods left Pending for lack of resources and adds nodes, then removes nodes whose Pods can fit elsewhere.

Cluster Autoscaler works through a cloud's node groups; Karpenter picks instance types for each batch of Pending Pods directly. Both decide from requests, not real use, so accurate requests are what make node scaling work.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Node autoscaling](https://kubernetes.io/docs/concepts/cluster-administration/cluster-autoscaling/)
- Official: [Karpenter](https://karpenter.sh/docs/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/cluster-autoscaling

## 8. Security

Who may do what, and what a Pod may do.

### Authentication, authorization and admission

The three checks every request to the API server passes.

Every request to the API server is authenticated, to find out who sent it, by a client certificate, a token or OIDC; authorized, to decide whether that identity may do this, usually by RBAC; and admitted, where admission controllers may change or refuse the object before it is stored.

Kubernetes has no user objects: people come from outside, by certificate or an identity provider. Learn the order of these steps and where each can refuse, since most access errors are explained by it.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)
- Certification: [Kubernetes and Cloud Native Security Associate (KCSA)](https://opsfolk.com/certifications/kubernetes-and-cloud-native-security-associate-kcsa.md)

Elsewhere:

- Official: [Controlling access to the Kubernetes API](https://kubernetes.io/docs/concepts/security/controlling-access/)
- Official: [Authenticating](https://kubernetes.io/docs/reference/access-authn-authz/authentication/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/authentication-authorization-and-admission

### RBAC

Roles that grant verbs on resources, and bindings that give them to someone.

Role-based access control grants permissions as rules of verbs on resources, such as `get`, `list` and `watch` on `pods`. A Role holds rules in one namespace and a ClusterRole across the cluster; a RoleBinding or ClusterRoleBinding gives them to users, groups or service accounts.

Permissions only add up: there is no deny rule. Grant the least that works, avoid wildcards, and check what someone can do with `kubectl auth can-i`.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Using RBAC authorization](https://kubernetes.io/docs/reference/access-authn-authz/rbac/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/rbac

### Service accounts

The identity a Pod uses to call the API, and to the cloud.

A service account is an identity for workloads. Each Pod runs as one, `default` unless told otherwise, and gets a short-lived token for it, mounted as a file, which RBAC then authorizes.

Give each application its own service account with only the permissions it needs, and set `automountServiceAccountToken: false` for Pods that never call the API. Clouds map service accounts to cloud roles, so a Pod can reach a bucket without a stored key.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Service accounts](https://kubernetes.io/docs/concepts/security/service-accounts/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/service-accounts

### Pod security

Security contexts, and the Pod Security Standards a namespace enforces.

A security context sets what a container may do on its node: run as a non-root user, a read-only root filesystem, dropped Linux capabilities, no privilege escalation, and a seccomp profile.

The Pod Security Standards name three levels, privileged, baseline and restricted. Pod Security Admission enforces one per namespace by a label, and can warn or audit before it refuses. Aim for restricted for applications; a cluster agent may need baseline or more.

On this site:

- Certification: [Certified Kubernetes Security Specialist (CKS)](https://opsfolk.com/certifications/certified-kubernetes-security-specialist-cks.md)

Elsewhere:

- Official: [Pod Security Standards](https://kubernetes.io/docs/concepts/security/pod-security-standards/)
- Official: [Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/)
- Official: [Configure a security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/pod-security

### Admission control and policy (optional)

Rules of your own, checked before an object is stored.

Admission controllers see each object before it is stored and may change it or refuse it. Some are built in, such as the one that applies LimitRange defaults. Your own rules can run as webhooks, through Kyverno or OPA Gatekeeper, or in the API server itself with ValidatingAdmissionPolicy and its CEL expressions.

Policies are how a platform team requires labels, refuses the `latest` tag, or allows images from approved registries only. Run a new rule in audit mode first.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Admission controllers](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/admission-control-and-policy

### Securing a cluster (optional)

Hardening beyond workloads: the API, etcd, nodes, the supply chain and audit logs.

Cloud native security is often put as four layers: cloud, cluster, container and code. For the cluster, that means keeping the API server off the open internet, encrypting etcd and its traffic, upgrading on time, and checking the setup against the CIS benchmark.

Around it come the supply chain, with minimal images that are scanned and signed, runtime detection with a tool such as Falco, and audit logs that record who did what. This is the ground the KCSA and the CKS cover.

On this site:

- Certification: [Kubernetes and Cloud Native Security Associate (KCSA)](https://opsfolk.com/certifications/kubernetes-and-cloud-native-security-associate-kcsa.md)
- Certification: [Certified Kubernetes Security Specialist (CKS)](https://opsfolk.com/certifications/certified-kubernetes-security-specialist-cks.md)

Elsewhere:

- Official: [Security, in the Kubernetes documentation](https://kubernetes.io/docs/concepts/security/)
- Official: [Auditing](https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/securing-a-cluster

## 9. Observability and troubleshooting

Logs, metrics, traces, and finding out what broke.

### Logs

What containers write to stdout, and shipping it somewhere it is kept.

Containers should write logs to stdout and stderr; the runtime stores them on the node, and `kubectl logs` reads them, with `--previous` for the container that just crashed. They go when the Pod is deleted or the node rotates them.

To keep them, a DaemonSet agent such as Fluent Bit or Vector reads each node's logs and ships them to a store such as Loki or Elasticsearch. Write structured logs, one JSON object a line, and they become far easier to search.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Logging architecture](https://kubernetes.io/docs/concepts/cluster-administration/logging/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/logs

### Metrics

metrics-server for kubectl top and autoscaling, Prometheus for the rest.

metrics-server collects each Pod's and node's current CPU and memory, which `kubectl top` shows and the autoscalers use. It keeps no history.

For history, alerts and your own application's numbers, Prometheus scrapes metrics from Pods and the cluster's components, often installed with the kube-prometheus-stack chart, and Grafana draws them. Learn to read a container's use against its requests and limits: it is how you size workloads and spot one about to be killed for memory.

On this site:

- Tool: [Kubernetes resource calculator](https://opsfolk.com/tools/kubernetes-resource-calculator)

Elsewhere:

- Official: [Resource metrics pipeline](https://kubernetes.io/docs/tasks/debug/debug-cluster/resource-metrics-pipeline/)
- Official: [Prometheus overview](https://prometheus.io/docs/introduction/overview/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/metrics

### Traces (optional)

Following one request across services with OpenTelemetry.

Logs and metrics tell you that something is slow; a trace tells you where. Each request carries a trace ID across services, and each hop records a span with its timing, so you can see a whole request on one timeline.

OpenTelemetry is the standard way to instrument applications and collect traces, usually through a collector running in the cluster, with a backend such as Jaeger or Tempo. Kubernetes' own components can emit traces too.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [OpenTelemetry documentation](https://opentelemetry.io/docs/)
- Official: [Traces for Kubernetes system components](https://kubernetes.io/docs/concepts/cluster-administration/system-traces/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/traces

### Debugging applications

Pending, CrashLoopBackOff, ImagePullBackOff and a Service that reaches nothing.

Most problems show in a Pod's status and events. Pending is scheduling, so read `kubectl describe pod`. ImagePullBackOff is a wrong image name or a missing pull secret. CrashLoopBackOff is the app exiting: read `kubectl logs --previous`. OOMKilled is a memory limit.

A Service that reaches nothing usually has a selector that matches no ready Pod, so check `kubectl get endpointslices`. For a running container without a shell, `kubectl debug` adds an ephemeral container with the tools you need.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)
- Playground: [Kubernetes cluster](https://opsfolk.com/playgrounds/kubernetes) (60 minutes, premium)

Elsewhere:

- Official: [Troubleshooting applications](https://kubernetes.io/docs/tasks/debug/debug-application/)
- Official: [Debug running Pods](https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/debugging-applications

### Troubleshooting clusters

A node NotReady, a control plane component down, the API not answering.

When the cluster itself misbehaves, start with `kubectl get nodes` and the node's conditions. A NotReady node often has a stopped kubelet or container runtime: check them with `systemctl` and `journalctl` on the node.

On a kubeadm cluster the control plane runs as static Pods from manifests in `/etc/kubernetes/manifests`; a typo there stops a component, and `crictl` shows its containers when the API is down. Troubleshooting is the largest domain of the CKA, so practise breaking things on purpose.

On this site:

- Certification: [Certified Kubernetes Administrator (CKA)](https://opsfolk.com/certifications/certified-kubernetes-administrator-cka.md)
- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Troubleshooting clusters](https://kubernetes.io/docs/tasks/debug/debug-cluster/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/troubleshooting-clusters

## 10. Running a cluster

Installing, upgrading and backing up a cluster, or choosing someone to do it.

### Managed or self-managed

Letting a provider run the control plane, or running it yourself.

A managed service such as EKS, GKE or AKS runs the control plane for you, upgrades it and backs up etcd; you look after the nodes, or let the provider do that too. For most teams in production this is the right choice.

Running your own makes sense on your own hardware, at the edge, or when rules require it, and it is the best way to learn how a cluster works. Compare providers on how far behind upstream they run, what networking and storage they bring, and what an idle cluster costs.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Production environment](https://kubernetes.io/docs/setup/production-environment/)
- Official: [Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html)
- Official: [Google Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/concepts/kubernetes-engine-overview)
- Official: [Azure Kubernetes Service](https://learn.microsoft.com/en-us/azure/aks/what-is-aks)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/managed-or-self-managed

### Installing with kubeadm

Building a cluster by hand: the control plane, a network plugin, and joining nodes.

kubeadm is the upstream tool for building a cluster. Prepare each machine with a container runtime, the kubelet and kubeadm; run `kubeadm init` on the first control plane node; install a CNI plugin; then run the `kubeadm join` command it prints on each worker.

Do this more than once, on throw-away VMs: it shows what every component is and where its files live. A highly available control plane adds more control plane nodes behind a load balancer. The CKA expects you to do all of it.

On this site:

- Certification: [Certified Kubernetes Administrator (CKA)](https://opsfolk.com/certifications/certified-kubernetes-administrator-cka.md)

Elsewhere:

- Official: [Creating a cluster with kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/)
- Official: [Highly available clusters with kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/installing-with-kubeadm

### Nodes and their maintenance

Adding nodes, and draining them before work so Pods move without an outage.

A node registers itself through its kubelet, and its conditions say whether it is ready and under any pressure. Before maintenance, `kubectl cordon` stops new Pods landing on it and `kubectl drain` evicts the ones there, respecting PodDisruptionBudgets; `uncordon` puts it back.

DaemonSet Pods are not drained, and Pods with local data need a flag. Replacing nodes rather than patching them in place is a common habit in the cloud.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Nodes](https://kubernetes.io/docs/concepts/architecture/nodes/)
- Official: [Safely drain a node](https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/nodes-and-maintenance

### Upgrading a cluster

One minor version at a time: control plane first, then the nodes.

Kubernetes releases a minor version about three times a year and supports each for about fourteen months, so clusters must be upgraded often. You move one minor version at a time: the control plane first, then the nodes, draining each one. The kubelet may lag behind the API server, but never run ahead of it.

With kubeadm that is `kubeadm upgrade plan` and `apply`, then the kubelet on each node. Read the release notes for removed APIs before every upgrade.

On this site:

- Quiz: [CKA practice: Advanced Kubernetes administration](https://opsfolk.com/quizzes/cka-practice-advanced) (40 questions, for members)

Elsewhere:

- Official: [Upgrading kubeadm clusters](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/upgrading-a-cluster

### Backing up etcd

Snapshots of the cluster's state, and restoring from one.

etcd holds every object in the cluster, so losing it loses the cluster. Take snapshots with `etcdctl snapshot save`, giving it the endpoint and the certificates etcd uses, keep them off the machine, and practise a restore before you need one.

A snapshot holds the objects, not the data in your volumes: those need backups of their own, with a tool such as Velero. On a managed service the provider backs up etcd for you.

On this site:

- Certification: [Certified Kubernetes Administrator (CKA)](https://opsfolk.com/certifications/certified-kubernetes-administrator-cka.md)

Elsewhere:

- Official: [Operating etcd clusters for Kubernetes](https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/backing-up-etcd

### Many clusters (optional)

Running a fleet: clusters as code, and deciding where workloads go.

Most organisations end up with more than one cluster: per environment, per region, or per team. Then clusters themselves become something to declare and reconcile. Cluster API describes clusters as Kubernetes objects, managed from a management cluster.

GitOps tools deploy the same applications to many clusters from one repository. Decide early what is shared and what differs between clusters, and how a request finds the right one.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Cluster API](https://cluster-api.sigs.k8s.io/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/many-clusters

## 11. Extending Kubernetes

The API, custom resources and controllers of your own.

### The Kubernetes API

Groups, versions and resources, and the watch that every controller is built on.

Every object lives at a REST path made of its API group, version and resource, such as `apps/v1` deployments. Versions move from alpha to beta to stable, and old ones are removed, which is why manifests must be updated before an upgrade.

Clients can watch a resource and be told of each change. Controllers are built on this: they watch, compare and act. `kubectl api-resources` and `kubectl get --raw` let you explore the API directly.

On this site:

- Article: [Kubernetes API Server Explained: The Life of a Request](https://opsfolk.com/blog/kubernetes-api-server-explained-the-life-of-a-request.md) (28 min read)
- Series: [Kubernetes Internals: How a Cluster Really Works](https://opsfolk.com/blog/series/kubernetes-internals-how-a-cluster-really-works) (9 parts)

Elsewhere:

- Official: [The Kubernetes API](https://kubernetes.io/docs/concepts/overview/kubernetes-api/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/kubernetes-api

### Custom resources

New kinds of object, defined with a CustomResourceDefinition.

A CustomResourceDefinition adds a new kind of object to the API, with its own schema, such as a `Certificate` or a `PostgresCluster`. kubectl, RBAC and GitOps then work with it like any built-in kind.

A custom resource on its own only stores data. It does something once a controller watches it and acts. Most tools you install, from cert-manager to Argo CD, bring their own CRDs, so learning to read them is learning how those tools are configured.

On this site:

- Certification: [Certified Kubernetes Administrator (CKA)](https://opsfolk.com/certifications/certified-kubernetes-administrator-cka.md)

Elsewhere:

- Official: [Custom resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/custom-resources

### Controllers and operators

Reconcile loops of your own, and operators that run software the way an expert would.

A controller is a loop that watches some objects, compares their spec with the world and acts to close the gap, over and over. Every built-in workload resource works this way.

An operator is a controller with a custom resource for one piece of software, such as a database, that does what its operator would by hand: install, upgrade, back up, fail over. Write one in Go with kubebuilder or controller-runtime, and make each reconcile safe to run again.

On this site:

- Series: [Kubernetes Internals: How a Cluster Really Works](https://opsfolk.com/blog/series/kubernetes-internals-how-a-cluster-really-works) (9 parts)

Elsewhere:

- Official: [Controllers](https://kubernetes.io/docs/concepts/architecture/controller/)
- Official: [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)
- Official: [The Kubebuilder book](https://book.kubebuilder.io/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/controllers-and-operators

### Extending the scheduler (optional)

Plugins and profiles that change how Pods are placed.

The scheduler is built from plugins at fixed points of its cycle, such as filter, score and bind. You can turn plugins on or off, weight them, or run several profiles with different settings and pick one per Pod with `schedulerName`.

For needs the built-in plugins do not meet, such as placing a group of Pods together or by GPU topology, you can write a plugin or run a second scheduler beside the default. Few clusters need this; know it exists.

Nothing on this site for it yet: coming soon.

Elsewhere:

- Official: [Scheduling framework](https://kubernetes.io/docs/concepts/scheduling-eviction/scheduling-framework/)

Topic page: https://opsfolk.com/roadmaps/kubernetes/topics/extending-the-scheduler

## About this roadmap

This roadmap puts Kubernetes in the order to learn it, from what a container is to writing your own controller. Each stage builds on the ones before it, so start at the top and move down; a topic marked optional can wait until you need it.

## Who it is for

Developers who deploy to Kubernetes, operators and platform engineers who run it, and anyone preparing for the KCNA, CKAD, CKA or CKS. You should be at ease with a Linux shell and know roughly what a container is; the first stage fills in the rest.

## How to use it

- Open a topic for a few lines on what it is and why it matters here, then follow its links: this site's articles, quizzes and playground first, then the official documentation.
- Do each thing on a real cluster as you read about it. The Kubernetes playground gives you one in the browser, and kind or minikube give you one on your machine.
- Mark a topic as done once you could explain it to a colleague and do it without notes. Your marks stay with your account.
- Check yourself with the practice quizzes as you finish each stage.

## FAQ

### How long does it take to learn Kubernetes?

With steady practice, the first five stages take most people a few weeks, and are enough to deploy and run applications. Running clusters yourself and extending Kubernetes take longer, and come best with experience on a real system.

### Do I need to know Docker first?

You need to know containers: what an image is, how a container runs, and how to build one. Docker is the usual way to learn that, but Kubernetes itself runs containers through containerd or CRI-O, not Docker.

### Which certification should I take first?

The KCNA if Kubernetes is new to you; it is multiple choice and tests concepts. Then the CKAD if you build applications, or the CKA if you run clusters. The CKS comes after the CKA.

### Should I run my own cluster or use a managed one?

For production, a managed service (EKS, GKE, AKS and others) is the usual choice: the provider runs the control plane. Building one yourself with kubeadm is still the best way to learn how a cluster works, and the CKA expects you to.
