Kubernetes and Cloud Native Associate (KCNA) — Question 13

Which of the following workload require a headless service while deploying into the namespace?

Answer options

Correct answer: A

Explanation

A StatefulSet requires a headless service to manage network identities for its pods, allowing for stable network identities and enabling direct communication between pods. In contrast, CronJob, Deployment, and DaemonSet do not necessitate headless services for their operation, as they typically rely on standard service types for load balancing and scaling.