liveBook · Manning

Kubernetes API

As explained in Cloud Observability in Action

The Kubernetes API is the programmatic interface for querying and changing the state of Kubernetes resources.

The Kubernetes API is the programmatic interface for querying and changing Kubernetes resource state. The control plane manages workloads, namespaces, nodes, and other resources through it. section 3.2.3

From an observability perspective, the API exposes signals but does not provide a complete telemetry pipeline. Teams must collect, route, store, and query those signals separately. section 3.2.3

Operationally, the API connects several concerns:

  • Control-plane system logs include API-server logs, alongside kubelet and container-runtime logs. section 3.2.3
  • The metrics endpoint can be queried with kubectl to inspect API-server behavior such as admission-controller latency. section 3.2.3
  • Low-level integrations, including load balancers and networked storage, may vary across cloud providers despite portable workloads. section 3.2.3

Inspecting API-server metrics

Run `kubectl get --raw /metrics` and filter for `apiserver` to examine metrics such as admission-controller duration histograms. section 3.2.3

Figure 3.2 Signal sources in Kubernetes

Use the signal-source overview to distinguish control-plane and data-plane telemetry around the Kubernetes API. section 3.2.3

How Cloud Observability in Action covers it

How deep it goes
Defines resource-state management and signal sources, then demonstrates raw metrics, but defers comprehensive telemetry collection and processing.
Examples
Demonstrates kubectl raw metrics, API-server admission latency, and control-plane system logs.
What you can do after
Diagnose API-server behavior by querying exposed metrics and relating them to control-plane observability signals.
How it connects
Connects the control plane, data plane, Kubernetes resources, observability, logs, metrics, and cloud-provider infrastructure APIs.

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 Cloud Observability in Action. The section links point to the parts of the book it draws on.