Typorithm · easy

Pod Manifest

pod-manifestkubernetespodmanifestcontainers
Saved on this device
Full lesson · 8 learning steps Open any exercise for focused practice
1

Step 1 of 8 · intro card

Learn Pod Manifest

0%

Workloads

A Pod manifest is the smallest deployable unit: apiVersion v1, kind Pod, a metadata.name, and a spec.containers list naming each image and its ports.

A Pod is the smallest schedulable object in Kubernetes — one or more containers that share a network and lifecycle.

Every manifest carries four keys: apiVersion and kind identify the object, metadata names it, and spec describes the desired state.

Inside spec.containers each entry needs a name and an image; containerPort documents the port the app listens on.

01

apiVersion: v1, kind: Pod identify the object.

02

metadata.name must be unique in the namespace.

03

spec.containers lists name, image, and ports.

apiVersion: v1
kind: Pod
metadata:
  name: web
spec:
  containers:
    - name: web
      image: nginx:1.27
      ports:
        - containerPort: 80

Read the implementation

Connect each part of the code to the concept before you type.

1. API version

Core objects like Pod live in the v1 (legacy core) API group, written as apiVersion: v1.

apiVersion: v1

2. Object kind

kind names the object type the manifest describes — here a single Pod.

kind: Pod

3. Object name

metadata.name uniquely identifies the Pod within its namespace.

metadata:
  name: web

4. Container spec

spec.containers lists each container by name and image.

- name: web
      image: nginx:1.27

5. Exposed port

containerPort documents which port the container listens on.

containerPort: 80

A complete learning loop

01

Understand

Read the concept map and follow the code breakdown.

02

Reconstruct

Type the implementation, repair mistakes and work through every recall exercise.

03

Verify

Use the final check without hints; revisit weak concepts in short practice sessions.

Pod Manifest: Lesson & Practice · Typorithm | ApplyDjinn