Skip to content
Ameen Abozaid
Planned lessonMID-057-L03

Pods and Deployments

  • Lesson 3 of 10
  • Mid-level
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

run and update a service with a Deployment.

Planned topics

  • A pod is one or more containers sharing a network; pods are disposable.
  • A Deployment keeps N replicas and performs rolling updates; it manages ReplicaSets.
  • Use an exact image tag or digest, never latest.
  • Labels and selectors connect Deployments, Services, and other objects.
Draft outline details

Demonstration

yaml
apiVersion: apps/v1
kind: Deployment
metadata: { name: orders }
spec:
  replicas: 3
  selector: { matchLabels: { app: orders } }
  template:
    metadata: { labels: { app: orders } }
    spec:
      containers:
        - name: orders
          image: registry.example/shop/orders:3f2a9c1

Check your understanding

Why not use latest?

Show answer

It is mutable, so you cannot know or reproduce what is running.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.