KubestronautAcademy
0Continue learning
Flashcards · optional

All KCNA flashcards

0/221 known
1. Cluster Architecture
Control plane
Click or press Space to flip
Control plane
The set of components (API server, etcd, scheduler, controller managers) that manage the cluster’s desired state.

Card 1 of 221

Control plane
The set of components (API server, etcd, scheduler, controller managers) that manage the cluster’s desired state.
kube-apiserver
The REST front end of Kubernetes; authenticates, authorizes, admits and persists every request. The only component that talks to etcd.
etcd
Consistent, distributed key-value store (Raft) that holds all cluster data.
kube-scheduler
Assigns newly created Pods to nodes by filtering and scoring candidate nodes.
kube-controller-manager
Runs the built-in controllers that reconcile actual state with desired state.
cloud-controller-manager
Runs cloud-provider-specific controllers (load balancers, routes, node lifecycle).
kubelet
Agent on each node that ensures containers described in PodSpecs are running and healthy.
kube-proxy
Per-node component that maintains network rules implementing Services.
Container runtime
Software that runs containers; Kubernetes talks to it through the CRI (e.g. containerd, CRI-O).
Reconciliation loop
Observe → diff → act, repeated forever by controllers to converge actual state to desired state.
spec vs status
spec is the desired state you declare; status is the observed state written by the system.
Static Pod
A Pod managed directly by the kubelet from a local manifest file, not via the API server/scheduler.
Admission controller
Plugin that intercepts API requests after authn/authz to mutate or validate (accept/reject) objects.
Quorum
Majority of etcd members ((n/2)+1) required to commit writes.
CRD
CustomResourceDefinition: extends the Kubernetes API with your own resource kinds.
Pod
One or more containers scheduled together on one node, sharing a network namespace (one IP) and volumes.
Init container
A container that runs to completion before the app containers start; init containers run one at a time in order.
Native sidecar
An init container with restartPolicy: Always; it starts before and keeps running alongside the main containers.
restartPolicy
Pod-level setting (Always, OnFailure, Never) that tells the kubelet when to restart exited containers.
Label selector
A query on labels (equality- or set-based) used by controllers, Services and kubectl -l to pick objects.
ReplicaSet
Controller that keeps a specified number of identical Pods running; normally managed by a Deployment.
Deployment
Manages ReplicaSets to provide declarative updates, rolling updates and rollbacks for stateless Pods.
maxSurge / maxUnavailable
RollingUpdate parameters: how many extra Pods may be created, and how many may be unavailable, during an update (default 25% each).
StatefulSet
Workload controller giving each Pod a stable ordinal name, stable DNS via a headless Service and its own PVC.
Headless Service
A Service with clusterIP: None; DNS returns individual Pod IPs instead of a virtual IP.
DaemonSet
Ensures a copy of a Pod runs on all (or selected) nodes, adding Pods as nodes join.
Job
Runs Pods until a specified number complete successfully; retries failures up to backoffLimit.
CronJob
Creates Jobs on a repeating schedule written in cron syntax.
ConfigMap
Object holding non-confidential key/value configuration, consumed as env vars, command args or files.
Secret
Object holding sensitive data, base64-encoded; mounted via tmpfs or injected as env vars.
QoS class
Guaranteed, Burstable or BestEffort; derived from requests/limits and used to rank Pods for eviction.
kubectl
The Kubernetes command-line client; turns commands and manifests into API server requests.
kubeconfig
Client config file (default ~/.kube/config) listing clusters, users, contexts and the current-context.
Context
Named combination of a cluster, a user and optionally a default namespace in kubeconfig.
Declarative management
Describing desired state in files and using kubectl apply to converge objects to it, repeatedly and idempotently.
Dry run
Executing a request without persisting it: client-side (local only) or server-side (through admission and validation).
Namespace
Virtual partition of a cluster providing a scope for names and a target for quotas and policies.
kube-node-lease
Namespace holding one Lease object per node, used as a lightweight node heartbeat.
ResourceQuota
Namespace object limiting the aggregate resource consumption and object counts in that namespace.
LimitRange
Namespace object setting default, minimum and maximum resources per container, Pod or PVC.
kubeadm
Official tool for bootstrapping (init/join) and upgrading conformant Kubernetes clusters.
kind
Kubernetes IN Docker: runs cluster nodes as containers, commonly used for CI and testing.
Version skew policy
Rules for how far component versions may differ; no component may be newer than kube-apiserver.
Drain
Cordon a node and evict its Pods (respecting PodDisruptionBudgets) before maintenance.
etcd snapshot
Point-in-time backup of the etcd keyspace, taken with etcdctl snapshot save.
ownerReferences
Metadata linking a dependent object to its owner, used by the garbage collector for cascading deletion.
krew
Package manager for kubectl plugins (executables named kubectl-).
kube-scheduler
Control plane component that assigns unscheduled Pods to nodes by filtering, scoring and binding.
Filtering
Scheduling phase that removes nodes which cannot run the Pod (resources, taints, required affinity, spread with DoNotSchedule).
Scoring
Scheduling phase that ranks feasible nodes using soft preferences; the highest score wins.
Binding
API object posted by the scheduler that sets a Pod’s spec.nodeName to the chosen node.
Resource request
Amount of CPU/memory reserved for a container; used by the scheduler for placement.
Allocatable
Node capacity minus resources reserved for the system and Kubernetes daemons; what Pods can request.
nodeSelector
Pod field listing node labels that must all match for the Pod to be scheduled there.
Node affinity
Expressive node-label rules (In, NotIn, Exists, DoesNotExist, Gt, Lt), either required (hard) or preferred (soft, weighted).
Pod anti-affinity
Rule that keeps a Pod away from Pods matching a label selector within a topology domain.
topologyKey
Node label that defines a topology domain for pod affinity and spread, e.g. kubernetes.io/hostname or topology.kubernetes.io/zone.
Taint
Node property (key=value:Effect) that repels Pods lacking a matching toleration.
Toleration
Pod property that allows (but does not require) scheduling onto nodes with a matching taint.
NoExecute
Taint effect that blocks new Pods and evicts running Pods without a toleration, optionally after tolerationSeconds.
Topology spread constraint
Rule that keeps matching Pods evenly distributed across domains within maxSkew.
PriorityClass
Cluster-scoped object mapping a name to an integer priority; higher-priority Pods are scheduled first and may preempt lower ones.
Preemption
Evicting lower-priority Pods so a pending higher-priority Pod can be scheduled.
Container
An isolated process (or group of processes) sharing the host kernel, isolated by namespaces and limited by cgroups.
Namespace (Linux)
Kernel feature that gives a process its own view of a resource: PID, network, mount, UTS, IPC, user.
cgroups
Control groups: kernel feature that limits and accounts CPU, memory, I/O and PIDs for groups of processes.
Container image
Read-only template made of filesystem layers plus a config, described by a manifest.
Layer
Content-addressed filesystem diff in an image; shared between images and cached on nodes.
Multi-stage build
Dockerfile with several FROM stages, so only the final artifact is copied into a small runtime image.
Distroless image
Minimal base image without shell or package manager, containing only the app and its runtime dependencies.
Image digest
Immutable sha256 hash identifying exact image content, written as @sha256:….
imagePullPolicy
Container field (Always, IfNotPresent, Never) that tells the kubelet when to pull the image.
OCI
Open Container Initiative: Linux Foundation project defining the image, runtime and distribution specifications.
CRI
Container Runtime Interface: gRPC API the kubelet uses to talk to container runtimes such as containerd and CRI-O.
runc
Reference low-level OCI runtime that creates namespaces and cgroups and starts the container process.
containerd
CNCF graduated high-level container runtime that implements CRI and manages images and container lifecycle.
RuntimeClass
Cluster-scoped object mapping a name to a runtime handler; Pods select it with runtimeClassName.
dockershim
Adapter in the kubelet that let Kubernetes use Docker Engine; removed in Kubernetes 1.24.
CNI
Container Network Interface: the plugin standard the runtime calls to attach Pods to the network and assign their IPs.
Pod network model
Each Pod has a unique IP and can reach every other Pod without NAT; containers in a Pod share one network namespace.
Service
Stable virtual IP and DNS name that load-balances to a set of Pods chosen by a label selector.
ClusterIP
Default Service type: a virtual IP reachable only from inside the cluster.
NodePort
Service type that opens the same port (default range 30000-32767) on every node.
LoadBalancer
Service type that provisions an external load balancer, usually via the cloud-controller-manager.
ExternalName
Service type that returns a DNS CNAME to an external hostname; no proxying or selector.
Headless Service
Service with clusterIP: None; DNS returns the IPs of the individual Pods. Used by StatefulSets.
EndpointSlice
Object listing the IPs, ports and readiness of the backends of a Service; replaces the older Endpoints object.
targetPort
The container port a Service forwards traffic to (number or named port).
kube-proxy
Per-node component that programs iptables, IPVS or nftables rules implementing Service virtual IPs.
CoreDNS
CNCF graduated DNS server used as the cluster DNS; resolves service.namespace.svc.cluster.local.
Ingress
API object with HTTP(S) host/path routing and TLS rules, implemented by an ingress controller.
Gateway API
Role-oriented successor to Ingress: GatewayClass, Gateway and Route resources (HTTPRoute, GRPCRoute…).
NetworkPolicy
Namespaced object that restricts Pod ingress/egress by labels, namespaces, IP blocks and ports; enforced by the CNI.
Service mesh
Infrastructure layer of proxies (sidecar or sidecarless) adding mTLS, traffic management and telemetry to service-to-service calls.
4Cs
Cloud, Cluster, Container, Code: the layered model of cloud native security.
ServiceAccount
Namespaced identity for processes in Pods; username system:serviceaccount:NAMESPACE:NAME.
Projected token
Short-lived, audience-bound ServiceAccount token from the TokenRequest API, mounted into Pods and rotated by the kubelet.
OIDC
OpenID Connect: lets the API server trust ID tokens from an external identity provider for user login.
RBAC
Role-Based Access Control: authorizes API requests using Roles/ClusterRoles bound to subjects.
RoleBinding
Grants a Role or ClusterRole to subjects within one namespace.
ClusterRoleBinding
Grants a ClusterRole to subjects across the entire cluster.
Admission controller
Plugin or webhook that mutates or validates objects after authentication and authorization, before they are stored.
Pod Security Standards
Three profiles of Pod hardening rules: Privileged, Baseline and Restricted.
Pod Security Admission
Built-in admission controller that applies Pod Security Standards per namespace in enforce, audit or warn mode; replaced PodSecurityPolicy.
securityContext
Pod- or container-level settings for user IDs, privileges, capabilities, seccomp and filesystem access.
Encryption at rest
API server configuration (EncryptionConfiguration, e.g. KMS) that encrypts Secrets before they are written to etcd.
OPA Gatekeeper
Admission controller using Open Policy Agent and Rego policies to enforce custom rules.
Kyverno
Kubernetes-native policy engine with YAML policies that validate, mutate and generate resources and verify images.
SBOM
Software Bill of Materials: inventory of all components in an artifact (SPDX, CycloneDX).
Falco
CNCF graduated runtime security tool that detects suspicious behaviour from kernel syscalls.
Volume
A directory mounted into one or more containers of a Pod, whose lifetime is independent of the container.
emptyDir
Ephemeral volume created empty when a Pod starts on a node and deleted with the Pod; can be RAM-backed with medium: Memory.
hostPath
Volume that mounts a file or directory from the host node’s filesystem; powerful and risky.
projected volume
Volume that merges several sources (secret, configMap, downwardAPI, serviceAccountToken) into one directory.
downwardAPI
Mechanism exposing a Pod’s own metadata and resource fields to its containers as env vars or files.
PersistentVolume (PV)
Cluster-scoped object representing a piece of provisioned storage with capacity, access modes and reclaim policy.
PersistentVolumeClaim (PVC)
Namespaced request for storage by a user; binds one-to-one to a suitable PV.
StorageClass
Cluster-scoped template naming a provisioner and parameters, used to create PVs dynamically.
Dynamic provisioning
Automatic creation of a PV (and backing storage) when a PVC requests a StorageClass.
Access mode
How a volume can be mounted: ReadWriteOnce, ReadOnlyMany, ReadWriteMany, ReadWriteOncePod.
Reclaim policy
What happens to a PV when its claim is deleted: Retain, Delete (Recycle is deprecated).
WaitForFirstConsumer
volumeBindingMode that delays binding and provisioning until a Pod using the PVC is scheduled.
CSI
Container Storage Interface: standard API that lets storage vendors ship out-of-tree drivers for Kubernetes.
volumeClaimTemplates
StatefulSet field that creates a dedicated PVC for each replica (e.g. data-db-0).
VolumeSnapshot
Namespaced request for a point-in-time copy of a PVC, fulfilled by a CSI driver via a VolumeSnapshotClass.
Rook
CNCF graduated project that runs and manages Ceph storage on Kubernetes using an operator.
CrashLoopBackOff
Pod state where a container keeps exiting and the kubelet waits an increasing back-off delay before each restart.
ImagePullBackOff
State where the kubelet failed to pull an image (ErrImagePull) and is waiting before retrying.
CreateContainerConfigError
Error creating a container’s configuration, usually because a referenced ConfigMap or Secret (or key) is missing.
OOMKilled
Termination reason when a container exceeds its memory limit and is killed by the kernel (exit code 137).
Exit code 137
128 + 9: the process received SIGKILL, typically due to OOM or exceeding the termination grace period.
FailedScheduling
Scheduler event explaining why no node could accept a Pending Pod.
Event
Short-lived API object recording something that happened to another object (scheduled, pulled, killed, failed).
kubectl logs --previous
Shows logs from the previous terminated instance of a container; essential for crash loops.
kubectl debug
Adds an ephemeral debug container to a running Pod (or copies a Pod/node) for troubleshooting.
NotReady
Node condition when the kubelet is not reporting healthy status to the control plane.
Node pressure
MemoryPressure, DiskPressure or PIDPressure conditions that trigger kubelet evictions.
journalctl -u kubelet
Reads the systemd journal for the kubelet service on a node.
crictl
CLI for CRI-compatible container runtimes, used on a node to inspect Pods, containers, images and logs.
/readyz and /livez
API server health endpoints for readiness and liveness; add ?verbose for individual checks.
EndpointSlice
Object listing the ready backend addresses of a Service; empty slices mean no matching Ready Pods.
kube-dns Service
The cluster DNS Service in kube-system, served by CoreDNS Pods labelled k8s-app=kube-dns.
Continuous Integration
Merging changes frequently and building and testing every commit automatically.
Continuous Delivery
Every change that passes the pipeline is releasable; production release needs a manual approval.
Continuous Deployment
Every change that passes the pipeline is released to production automatically.
GitOps
Operating model where desired state lives in Git and an in-cluster agent pulls and continuously reconciles it.
OpenGitOps
CNCF project defining the four GitOps principles: declarative, versioned and immutable, pulled automatically, continuously reconciled.
Drift
A difference between the live cluster state and the desired state stored in Git.
Self-heal
GitOps agent behaviour that automatically reverts manual changes so the cluster matches Git again.
Argo CD
CNCF graduated (Argo project) declarative GitOps CD tool built around the Application CRD, with a web UI.
Flux
CNCF graduated GitOps tool built from modular controllers (GitOps Toolkit): source, kustomize, helm, notification, image automation.
Helm chart
A package of templated Kubernetes manifests plus default values.yaml and Chart.yaml metadata.
Helm release
One installed instance of a chart in a cluster; each upgrade or rollback adds a revision.
Kustomize
Template-free customisation of YAML with bases, overlays and patches; built into kubectl (apply -k).
Blue/green deployment
Run old (blue) and new (green) versions side by side and switch all traffic at once.
Canary deployment
Send a small share of traffic to the new version first and increase it while metrics stay healthy.
Progressive delivery
Automated, metric-driven gradual release (canary, blue/green) with automatic promotion or rollback, e.g. Argo Rollouts, Flagger.
Image digest
Content hash (sha256) that identifies an image immutably, unlike a tag which can be moved.
kubectl logs --previous
Shows the logs of the previous, terminated instance of a container; key for CrashLoopBackOff.
kubectl exec
Runs a command inside an existing container; requires that binary (e.g. a shell) to exist in the image.
kubectl port-forward
Tunnels a local port to a port on a Pod (or one Pod behind a Service) through the API server for testing.
kubectl debug
Adds an ephemeral container to a Pod, creates a modified copy of a Pod (--copy-to), or starts a debug Pod on a node.
Ephemeral container
Temporary container added to a running Pod for troubleshooting; no ports or probes, never restarted, cannot be removed.
Distroless image
Minimal image containing only the app and its runtime dependencies, without a shell or package manager.
Process namespace sharing
Containers that share a PID namespace can see each other’s processes; kubectl debug --target uses it.
Event
Short-lived API object recording something that happened to an object (scheduling, pulls, probe failures, mounts).
CreateContainerConfigError
Container status when its configuration cannot be built, typically a missing ConfigMap/Secret or key.
CrashLoopBackOff
Container repeatedly exits and the kubelet waits an increasing delay before restarting it.
Readiness probe
Check that decides whether a Pod receives Service traffic; failure removes it from endpoints without restarting it.
Server-side dry run
--dry-run=server: the request is validated and admitted by the API server but not persisted.
kubectl diff
Shows the differences between local manifests and the live objects before applying.
kubectl rollout undo
Reverts a Deployment (or DaemonSet/StatefulSet) to a previous revision.
ProgressDeadlineExceeded
Deployment condition reason set when a rollout makes no progress within progressDeadlineSeconds (default 600 s).
netshoot
Community container image packed with network troubleshooting tools (curl, dig, tcpdump) for temporary debug Pods.
Observability
The ability to understand a system’s internal state from the telemetry it emits (metrics, logs, traces).
Telemetry
Data a system emits about its own behaviour and health.
Prometheus
CNCF graduated, pull-based metrics monitoring system with a time-series database, PromQL and alerting rules.
Exporter
A process that exposes metrics of a third-party system in Prometheus format (e.g. node_exporter).
PromQL
Prometheus Query Language used for dashboards, ad-hoc queries and alerting rules.
Cardinality
The number of unique time series, driven by label value combinations. High cardinality hurts performance.
Alertmanager
Receives alerts from Prometheus and deduplicates, groups, silences, inhibits and routes them to receivers.
ServiceMonitor
Prometheus Operator custom resource that declares which Services Prometheus should scrape.
OpenTelemetry
CNCF incubating, vendor-neutral set of APIs, SDKs, the Collector and OTLP for traces, metrics and logs.
OTLP
OpenTelemetry Protocol: the wire protocol (gRPC/HTTP) for sending telemetry.
Span
A single timed operation within a trace, with IDs, parent reference and attributes.
Context propagation
Passing trace ID and parent span ID between services (e.g. W3C traceparent header) so spans join one trace.
Jaeger
CNCF graduated distributed tracing backend for storing and visualising traces.
Fluent Bit
Lightweight log processor and forwarder, typically deployed as a DaemonSet; part of the graduated Fluentd project.
kube-state-metrics
Add-on that generates metrics about the state of Kubernetes objects by watching the API server.
Error budget
The allowed amount of unreliability, 1 − SLO, that can be spent on change before reliability work takes priority.
Cloud native
Building and running scalable apps in dynamic environments using containers, service meshes, microservices, immutable infrastructure and declarative APIs.
Microservices
An architecture of small, loosely coupled, independently deployable services communicating over the network.
Twelve-Factor App
Methodology of 12 practices (config in env, stateless processes, disposability, logs as streams…) for portable, scalable apps.
Immutable infrastructure
Infrastructure that is never modified after deployment; changes are made by replacing it with a new version.
Pets vs cattle
Unique, hand-maintained servers (pets) versus interchangeable, replaceable instances (cattle).
Loose coupling
Components depend only on stable interfaces, so they can change, fail and scale independently.
HPA
HorizontalPodAutoscaler: adjusts the number of Pod replicas based on observed metrics.
VPA
VerticalPodAutoscaler: recommends or sets container CPU/memory requests based on usage.
Cluster Autoscaler
Adds nodes when Pods are unschedulable and removes underused nodes, using node groups.
Karpenter
Node autoscaler (Kubernetes SIG Autoscaling subproject) that provisions right-sized nodes directly for Pending Pods.
KEDA
Kubernetes Event-driven Autoscaling: CNCF graduated project that scales workloads on event sources, including to zero.
Knative
Kubernetes-based platform for serverless workloads: Serving (scale to zero, revisions) and Eventing.
CloudEvents
CNCF graduated specification for describing event data in a common, interoperable format.
OCI
Open Container Initiative (Linux Foundation): image, runtime and distribution specifications for containers.
CNCF maturity levels
Sandbox, Incubating and Graduated: stages reflecting a project’s adoption, governance and stability.
CNCF
Cloud Native Computing Foundation: Linux Foundation project founded in 2015 that hosts Kubernetes and other cloud native projects.
Governing Board
CNCF body responsible for budget, marketing, events, brand and legal matters.
TOC
Technical Oversight Committee: CNCF technical leadership that accepts projects and votes on maturity levels.
TAG
Technical Advisory Group: CNCF domain group (e.g. security, observability) that supports the TOC with reviews and guidance.
End User TAB
Technical Advisory Board of the CNCF end user community, representing organisations that use cloud native tech.
Sandbox
Entry-level CNCF maturity stage for early or experimental projects.
Incubating
Middle CNCF maturity stage: production use by several end users and a healthy contributor base.
Graduated
Highest CNCF maturity stage: wide adoption, security audit, diverse committers, solid governance.
OpenSSF Best Practices badge
Self-certification of secure open source development practices; required for CNCF graduation.
Steering Committee
Elected top-level governance body of the Kubernetes project.
SIG
Special Interest Group: a Kubernetes community group that owns an area of the project’s code and docs.
Working Group
Temporary Kubernetes group for cross-SIG topics; owns no code and disbands when done.
KEP
Kubernetes Enhancement Proposal: design document required for significant changes, owned by a SIG.
CLA / DCO
Contributor License Agreement (signed once) or Developer Certificate of Origin (Signed-off-by per commit) for contributions.
Internal developer platform
Self-service platform built by a platform team to give developers golden paths to build and run apps.
Kubestronaut
Title for holding all five active Kubernetes certifications: KCNA, KCSA, CKAD, CKA and CKS.