liveBook · Manning

Kubernetes API

As explained in Learn Docker in a Month of Lunches, Second Edition

The Kubernetes API is the standardized interface for declaring, querying, and managing Kubernetes resources and application models.

The Kubernetes API lets you describe an entire application declaratively in YAML, then send that model to a cluster with kubectl. Kubernetes uses the model to coordinate containers, networking, storage, configuration, and confidential data while hiding most individual machines. section 15.1

An application model can describe these layers:

  • Compute, deployed as containers. section 15.1
  • Communication, implemented through cluster networking and traffic routing. section 15.1
  • Storage, expressed as abstract requirements that Kubernetes can allocate or provision. section 15.1
  • Configuration, including application settings and confidential data supplied to components. section 15.1

Check a local Kubernetes cluster

Enable Kubernetes in Docker Desktop, select its context, and list the cluster nodes with kubectl. This verifies that the development cluster is running. section 15.1

Figure 15.3 Modeling compute, networking, storage, and configuration in the Kubernetes API
figure

Use the layered diagram to connect compute, networking, storage, and configuration with the Kubernetes API. section 15.1

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Defines four high-level application layers and portability, but defers detailed API mastery and production modeling.
Examples
Uses YAML application models, Docker Desktop Kubernetes, kubectl contexts, and node listings.
What it assumes
Assumes Docker familiarity while requiring further hands-on practice to become comfortable with the Kubernetes API.
What you can do after
Operate Kubernetes applications by modeling them in YAML and sending those models through kubectl.
How it connects
Connects declarative YAML with kubectl, containers, networking, storage, configuration, and the control plane.

Also explained in

Compare how 6 books explain Kubernetes API →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.