Pods and Deployments
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
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:3f2a9c1Check 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.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.