A developer wants to deploy a stateless application as a set of identical pods. They need the pods to be distributed across nodes and have stable network identities. Which resource should they use?
Trap 1: Job
Job is for batch processing, not long-running services.
Trap 2: DaemonSet
DaemonSet runs a pod on every node, not for general stateless apps.
Trap 3: StatefulSet
StatefulSet is for stateful apps needing stable network IDs and storage.
- A
Job
Why wrong: Job is for batch processing, not long-running services.
- B
Deployment
Deployments manage stateless pods with rolling updates and scale.
- C
DaemonSet
Why wrong: DaemonSet runs a pod on every node, not for general stateless apps.
- D
StatefulSet
Why wrong: StatefulSet is for stateful apps needing stable network IDs and storage.