Kubernetes

Container orchestration

Definition

Kubernetes is an open-source platform for orchestrating containers. Google released it in 2014; today it is maintained under the Cloud Native Computing Foundation (CNCF).

What for?

Kubernetes places containers on servers, keeps the desired state, scales applications and replaces failed containers automatically.

Technical architecture

flowchart LR
  subgraph CP[Control plane]
    API[kube-apiserver]
    ETCD[(etcd)]
    SCH[kube-scheduler]
    CM[kube-controller-manager]
  end
  subgraph N1[Worker node]
    KL[kubelet] --> P1[Pod]
    KP[kube-proxy]
  end
  U[kubectl / CI] --> API
  API --> ETCD
  SCH --> API
  CM --> API
  KL --> API

Core components

Control plane
kube-apiserver, etcd, scheduler and controller manager run the cluster.
Worker nodes
Run pods; kubelet and a container runtime run on every node.
Pod
The smallest unit: one or more containers sharing a network.
Deployment and Service
Deployments manage replicas and updates; services provide stable network addresses.

Practical examples

  • A deployment with three replicas keeps a web service available when a node fails.
  • A Horizontal Pod Autoscaler adds pods under high CPU load.

Enterprise use cases

  • Running microservices
  • Platforms for development teams
  • Scalable AI inference services

Quiz

1. Where does Kubernetes store the cluster state?

2. What is the smallest deployable unit in Kubernetes?

3. Which component decides on which node a pod runs?

Related news

Govern AI agents on GKE: a deep dive into Gemini platform agent governance

Source excerptAs organizations move from AI prototypes to running fleets of agents in production, many are choosing Google Kubernetes Engine (GKE) to build and run their own AI agents and Model Context Protocol (MCP) servers. GKE gives AI engineering teams the flexibility to scale open-source frameworks, custom reasoning loops, and specialized toolchains. Running autonomous agents in production brings new networking and security challenges. Traditional microservices follow predictable call graphs, so teams can lock them down at deployment time with Layer 3 and Layer 4 policies. Agents, on the other hand, decide at runtime which tools, models, and agents to call, based on user prompts and model reasoning. A rule that allows traffic from one Pod IP address to another can't tell a harmless tool call from a destructive one. At AGNTCon + MCPCon, we shared how agent governance in the Gemini platform would extend to more places where agents run. Today, agent governance is available for agents on GKE. It joins agent governance for Cloud Run, and cross-cloud agent governance for agents running on other clouds and on-premises. Wherever your agents run, platform and security teams can use the same identit…

Ray-Kubernetes observability: Comprehensive logs, events, and TPU traces for Ray on GKE

Source excerptWhen a distributed Ray job fails, the first question is rarely "what happened?" It's "which layer did it happen in?" A RayActorError in your training script might be a bug in your code, a worker Pod that Kubernetes evicted, or a failing GPU on the node underneath. Answering that question has traditionally meant context-switching between the Ray Dashboard, kubectl describe, Cloud Logging, and whatever node-level tooling your platform team set up. Over the past year, in collaboration with Anyscale and the open-source community, we've been working to close that gap for Ray on Google Kubernetes Engine (GKE), both upstream in the open-source Ray and KubeRay projects, as well as the managed Ray Operator add-on. Today, we're sharing four capabilities that bring the full stack into view: Kubernetes platform events in the Ray Dashboard: View Pod scheduling, evictions, and OOM kills alongside your tasks and actors. Node and hardware fault forwarding: Automatically route node-level GPU and host faults to the specific Ray clusters they affect. On-demand JAX profiling on Cloud TPUs: Capture XLA traces from live Ray TPU workers through the Ray Dashboard and inspect them in managed XProf. Struct…

Kubernetes v1.38 Sneak Peek

Source excerptAs we get closer to the release date for Kubernetes v1.38, the project develops and matures, features may be deprecated, removed, or replaced with better ones for the project's overall health. This blog post outlines some of the planned changes for the Kubernetes v1.38 release that the release team feels you should be aware of for the continued maintenance of your Kubernetes environment and keeping up to date with the latest changes. The information listed below is based on the current status of the v1.38 release and may change before the actual release date. Deprecations and removals for Kubernetes v1.38kubectl: WebSocket opt-out environment variables removedkubectl has used WebSockets instead of SPDY by default for kubectl exec, attach and cp since v1.30, and for kubectl port-forward since v1.31. The KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS environment variables let you turn that behavior off. These variables are going to be removed in v1.38. kubectl will then always try WebSockets first and fall back to SPDY when it needs to (the same as the current default behavior). If your scripts or CI environments set either of these environment variables, you…