Kubernetes Complete Reference Index
Select any item below to open its full syntax specification, parameters, and live example.
concept
AI workloads and data localityObserved sustainable throughput: 20 requests/s per replica (invented)
Target demand: 45 requests/s
ceil(45/20) = 3 replicas; verify tail latency and headroom
Training adjusts model parameters and can run for hours; inference serves predictions using an existing model. A small bookstore recommendation API might use CPU inference, while a large model may require accelerators. A distributed training run may require all cooperating workers to be schedulable together. Gang scheduling is a group-admission or placement capability that needs a compatible implementation, such as a supported Kubeflow Trainer integration; an ordinary Job with parallelism does not guarantee simultaneous placement. Checkpoint model state, optimizer state and data progress to durable approved storage; verify resume compatibility.
AKS architecture and operating modesneed custom pool controls -> Standard candidate
prefer managed defaults -> Automatic candidate
unsupported requirement -> HOLD
AKS Automatic configures more infrastructure and operational defaults for you, including automatic capacity and update behavior. AKS Standard gives operators more choices about node pool configuration and lifecycle. These are operating modes, not the same thing as Free, Standard and Premium management pricing tiers. Automatic comes with a preconfigured Standard tier. Compare the actual feature matrix for the selected region and release rather than assuming any requirement is supported. A team needing explicit control of a specialized pool should investigate Standard first; a team wanting fewer infrastructure decisions can evaluate Automatic.
AKS identity network and storageapiVersion: v1
kind: ServiceAccount
metadata:
name: catalog
namespace: bookstore
annotations:
azure.workload.identity/client-id: "00000000-0000-0000-0000-000000000000"
Microsoft Entra Workload ID uses a projected Kubernetes service account token and federation with an Entra identity. Configure the OIDC issuer, the exact namespace/service account subject, token exchange audience and least-privilege Azure resource role. The ServiceAccount annotation identifies the client and the Pod template label opts in to workload identity mutation. A matching supported SDK must exchange the token. Separately, kubelet image pulls from Azure Container Registry need registry permissions appropriate to its authorization mode. Granting application identity permissions does not repair an image pull error.
AKS lifecycle and cost plan10 current + 2 surge = 12 peak nodes
quota for 11 -> HOLD
A surge upgrade may temporarily add nodes to a pool. Verify VM quota, subnet and Pod CIDR capacity, disruption budgets and application readiness before beginning. A PDB constrains voluntary eviction but does not guarantee uninterrupted service. If a synthetic pool has 10 nodes and needs 2 extra during maintenance, plan for 12 nodes and associated temporary charges. If only one extra VM can be allocated, hold the upgrade until the approved plan is feasible. Do not bypass disruption protections to finish quickly.
API discovery and REST identity/apis/GROUP/VERSION/namespaces/NAMESPACE/RESOURCE/NAME
Learn how Kubernetes API discovery maps kinds and resource names to REST paths, namespaces and subresources. Kubernetes exposes a resource-oriented HTTP API.
Access modes and topology
Choose RWO, ROX, RWX or RWOP appropriately and reason about filesystem mode and zonal storage scheduling.
Admission and object lifecyclemetadata.generation / status.observedGeneration
Trace API write processing, status generations, admission, dry runs and finalizers without confusing acceptance with readiness. A typical persistent object write reaches the API server, is authenticated and authorized, passes decoding and applicable admission/validation, and is stored.
Admission policies and webhooksValidatingAdmissionPolicy + ValidatingAdmissionPolicyBinding
A mutating admission step can adjust an object, for example by supplying an approved default label. Validation examines the resulting request and may reject it. Mutation must be safe to repeat and should not rely on a particular ordering among webhooks. A validating step is appropriate for a rule that must hold after mutations. Neither step proves a workload is healthy.
Affinity, taints and tolerations
Use node selectors, required and preferred affinity, inter-Pod placement rules, taints and tolerations without confusing permission with placement.
ApplicationSet and environment promotionapiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: catalog-environments
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- env: dev
server: https://dev.example.invalid
revision: reviewed-dev
- env: staging
server: https://staging.example.invalid
revision: reviewed-staging
template:
metadata:
name: 'catalog-{{.env}}'
spec:
project: catalog-lab
source:
repoURL: https://git.example.invalid/catalog/config.git
targetRevision: '{{.revision}}'
path: 'overlays/{{.env}}'
destination:
server: '{{.server}}'
namespace: 'catalog-{{.env}}'
syncPolicy:
applicationsSync: create-update
preserveResourcesOnDeletion: true
This complete illustrative ApplicationSet assumes two registered destinations and an existing restricted AppProject. It uses Go templates in string fields and fails when a required key is missing. Go templates are evaluated per string field, not arbitrary YAML objects. The revision names and URLs are fictional; resolve each revision to a reviewed commit in a real delivery record. The ApplicationSet policy controls changes to Applications, not their sync behavior. No automated sync is configured here.
Argo CD objects and safetyspec:
sourceRepos:
- https://git.example.invalid/bookstore/config.git
destinations:
- server: https://cluster.example.invalid
namespace: bookstore-lab
clusterResourceWhitelist: []
namespaceResourceWhitelist:
- group: apps
kind: Deployment
- group: ""
kind: ConfigMap
An AppProject constrains sources, destinations and resource kinds. The complete fixture allows only one exact repository and one fictional namespace/server pair; its permitted namespaced kinds are Deployment and ConfigMap. It explicitly denies cluster-scoped resources through an empty cluster resource whitelist. Never permit a tenant to deploy into the Argo CD control namespace, which can undermine project boundaries. Restrict who can edit Application and AppProject objects, repository access and cluster credentials. Project rules complement rather than replace Kubernetes RBAC and admission.
Artifact promotion and deliveryimage: REGISTRY/REPOSITORY@sha256:DIGEST
Promote a single immutable image digest with matching tests, platform, verification and approval. Explicitly select a pull policy and verify registry access; signatures and scans are evidence, not guarantees.
Artifact provenance and SBOMDigest + verified signature + provenance + vulnerability evidence
A container supply chain includes the source revision, dependencies, builder, registry, release approval and deployed image. A Kubernetes Deployment declares which image to run; it does not establish how the image was built. For the fictional bookstore, record the source revision, locked dependency inputs, build output digest and release decision together. Review these as separate pieces of evidence, not as interchangeable security claims. A compromised source or builder can still produce a correctly identified artifact.
Authentication and service accountsspec.serviceAccountName / spec.automountServiceAccountToken
Distinguish human and workload identity, understand authentication methods and choose safe ServiceAccount token settings. A bookstore operator and a catalog application both need to talk to Kubernetes, but they should not share credentials.
Authorization diagnosticskubectl auth can-i get pods/NAME --subresource=log
Diagnose access failures using request attributes, authorization reviews and narrowly scoped permission changes. An HTTP 401 commonly means that the presented credentials were not accepted; anonymous access can complicate missing-credential cases.
Batch queues and workflow systemsCapacity 4; A=3, B=2, C=1
First pass: admit A; B and C wait
After A releases 3: admit B and C; 1 unit remains
Batch work has a finite result: for example, calculating totals for three catalog partitions. A Kubernetes Job creates Pods until its completion policy is satisfied or it fails. A queue adds a separate admission decision so independent Jobs do not all compete for scarce resources immediately. Admission is not the same as Pod placement, container startup or successful output. Use a Job for independent bounded tasks; add a queue manager when teams share limited capacity or need admission policy.
CI verification and migration safetyexpand → migrate → verify → contract
Validate syntax, API acceptance and user behavior separately. Expand a schema compatibly, migrate data, then contract after old versions and rollback requirements are retired.
CPU and memory requests and limits
Learn how Kubernetes CPU and memory requests guide scheduling, how limits affect runtime behavior, and how to interpret resource quantities.
CRD schemas and versionsGVK: books.example.com / v1 / BookRequest
GVR: books.example.com / v1 / bookrequests
GET /apis/books.example.com/v1/namespaces/book-lab/bookrequests
A CRD is cluster-scoped even when the resources it defines are namespaced. In the example the group is books.example.com, the kind is BookRequest and the plural resource name is bookrequests. The CRD name combines plural and group: bookrequests.books.example.com. The API version on the CRD itself is apiextensions.k8s.io/v1; the custom object uses books.example.com/v1. Namespaced instances have distinct identities in different namespaces, whereas a cluster-scoped custom resource has no namespace. Installing a CRD changes the cluster API for everyone; it requires separate approval.
CRI static Pods and evictionPod UID → CRI sandbox/container → state and node evidence
The Container Runtime Interface (CRI) is the gRPC contract the kubelet uses to communicate with a compatible container runtime. A Kubernetes Pod object expresses API state, while the runtime holds sandbox and container state on a particular node. A Pod sandbox provides the runtime environment for a Pod, including network setup in common Linux configurations. Compare IDs, Pod UID and timestamps before correlating runtime records with API records; a replacement Pod can reuse a name but have a new UID. Kubernetes does not require Docker Engine as the node runtime. CRI and OCI solve different layers of the problem; cgroups provide operating-system resource accounting and enforcement.
Showing 20 of 161 entries