KRM's Wire and At-Rest Format
Kubernetes uses KRM and its API wire format not just in transit, but also at rest, when storing a resource
For example, the resource, now called manifest, can be captured as past revision of a resource, recorded in an asset inventory system for audit purposes, or used as backup for disaster recovery. With immutable infrastructure the manifest can be promoted from development to test, staging, up to production.
All KRM-compatible client tools share a common pattern, spearheaded by kubectl
reference implementation: the clients read the at-rest-manifest, parse the apiVersion, kind, namespace, and name fields from the body, and finally construct the API URL and POSTs the resource to the API server. The API server endpoint and credentials are identified from the applicable context of a kubeconfig
file1.