0
0
Microservicessystem_design~5 mins

Pods and deployments for services in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Pod in Kubernetes?
A Pod is the smallest deployable unit in Kubernetes. It represents one or more containers that share storage, network, and a specification for how to run the containers.
Click to reveal answer
beginner
What is the purpose of a Deployment in Kubernetes?
A Deployment manages Pods and ReplicaSets. It ensures the desired number of Pods are running, handles updates, and can roll back changes if needed.
Click to reveal answer
intermediate
How do Deployments help with scaling services?
Deployments allow you to easily increase or decrease the number of Pod replicas, enabling your service to handle more or less traffic as needed.
Click to reveal answer
intermediate
Why should containers in a Pod share the same network namespace?
Sharing the network namespace allows containers in a Pod to communicate with each other using localhost, making coordination simpler and faster.
Click to reveal answer
beginner
What happens if a Pod crashes in a Deployment?
The Deployment controller detects the crash and automatically creates a new Pod to replace the failed one, keeping the service running smoothly.
Click to reveal answer
What is the smallest deployable unit in Kubernetes?
ANode
BDeployment
CService
DPod
Which Kubernetes object manages rolling updates for Pods?
AConfigMap
BService
CDeployment
DNamespace
How do containers inside the same Pod communicate?
AThrough separate IP addresses
BUsing localhost network
CVia external service
DThey cannot communicate
What ensures the desired number of Pod replicas are running?
ADeployment
BReplicaSet
CPod
DIngress
If a Pod crashes, what does the Deployment do?
ACreates a new Pod to replace it
BDeletes the Deployment
CDoes nothing
DScales down the service
Explain how Pods and Deployments work together to keep a microservice running smoothly.
Think about how Kubernetes keeps your app available and updated.
You got /3 concepts.
    Describe the benefits of using Deployments for scaling microservices.
    Consider how you handle more users or traffic.
    You got /3 concepts.