Pods, Deployments, StatefulSets, DaemonSets, Jobs, probes, resource limits, taints, tolerations and affinity.
40 cards · basic cards · AI-written, checked twice. Edit anything.
- What is the smallest deployable unit in Kubernetes?
Show answer
A Pod
- Can multiple containers in the same Pod share the network namespace?
Show answer
Yes, they share a single IP address and communicate via localhost
- What happens to other containers in a Pod if one container crashes?
Show answer
They continue running; a crashed container does not automatically restart the Pod
- How do containers communicate within the same Pod?
Show answer
Via localhost using the individual container port numbers
- What Kubernetes object manages replicated Pods and enables rolling updates?
Show answer
Deployment
- Does a Deployment directly manage Pods?
Show answer
No, it creates and manages ReplicaSets, which manage Pods
- What is the default update strategy for a Deployment?
Show answer
Rolling update, where Pods are gradually replaced
- How do you scale a Deployment to a specific number of replicas?
Show answer
Set spec.replicas in the manifest or use kubectl scale
- What is the primary difference between a StatefulSet and a Deployment?
Show answer
StatefulSet maintains a sticky identity for each Pod with predictable naming and order; Deployment treats Pods as interchangeable
- What does a StatefulSet provide that a Deployment does not?
Show answer
Stable network identity and stable persistent storage for each Pod
- How are Pods in a StatefulSet named and identified?
Show answer
By an ordinal index appended to the StatefulSet name, e.g., mysql-0, mysql-1, mysql-2
- What is the purpose of a Headless Service with a StatefulSet?
Show answer
To provide DNS names for individual Pods without load balancing
- What does a DaemonSet ensure?
Show answer
One Pod runs on every Node in the cluster (or every Node matching a nodeSelector)
- What is a common use case for a DaemonSet?
Show answer
Running system daemons like monitoring agents, log collectors, or networking plugins
- What happens to a DaemonSet Pod when a Node is cordoned?
Show answer
The Pod is evicted unless it has a matching toleration for the node.kubernetes.io/unschedulable taint