Kubernetes: pods and Deployments

The pod, the ReplicaSet and the Deployment, labels and selectors, the anatomy of a manifest, requests and limits, liveness and readiness probes, rolling updates and rollback.

  • 30 cards
  • 6 topics
  • Free

The outline, topic by topic

Each topic is weighted the way the exam weighs it.

  1. Concepts
  2. Questions
  3. Sort and link
  4. The numbers
  5. Scenarios
  6. Understand

A few cards from the deck

  • Pod: what is it?

    Show the answer

    The smallest unit Kubernetes deploys: one or more containers that share the same network address and volumes, and live on the same node.

    A pod is ephemeral: when it disappears, its controller replaces it with a new pod, with another address, instead of bringing the same one back.

  • Which pods does the selector app=web,tier=front catch?

    ```text
    p1 app=web tier=front
    p2 app=web tier=back
    p3 app=api tier=front
    p4 app=web
    `

    • Only p1
    • p1 and p2
    • p1 and p3
    • p1, p2 and p4
    Show the answer

    Only p1

    The comma is an AND: both labels must be present with the right value. p2 has the wrong tier, p3 the wrong app, and p4 has no tier label at all.

  • A Deployment manages …, one per version of the pod template; each one keeps the number of pods set by ….

    Show the answer

    A Deployment manages ReplicaSets, one per version of the pod template; each one keeps the number of pods set by replicas.

    During an update, the old ReplicaSet empties while the new one fills; the old one is kept, empty, for the rollback.

  • ReplicaSet: what is it?

    Show the answer

    An object that keeps a given number of identical pods running, creating or deleting pods according to the gap it sees.

    You rarely create one by hand: the Deployment manages one for each version of the pod template.