DevOps

Kubernetes Advanced

StatefulSets, DaemonSets, Jobs, CronJobs, PersistentVolumes, resource management, HPA, troubleshooting OOMKilled

24 câu hỏi phỏng vấn·
Mid-Level
1

What is a StatefulSet in Kubernetes?

Câu trả lời

A StatefulSet guarantees stable and predictable identity for each pod (pod-0, pod-1, etc.) along with individual persistent storage. Unlike Deployments designed for stateless applications, StatefulSets maintain pod startup and shutdown order. They are essential for distributed databases, cache systems like Redis Cluster, or applications requiring stable network identity.

2

What is a DaemonSet in Kubernetes?

Câu trả lời

A DaemonSet ensures that a copy of a pod runs on all (or some) nodes in the cluster. It is primarily used for system agents like log collectors (Fluentd), monitoring agents (Prometheus Node Exporter), or network plugins (CNI). Unlike Deployments that target a fixed number of replicas, DaemonSets automatically adapt to the number of nodes.

3

What is a Job in Kubernetes?

Câu trả lời

A Job creates one or more pods and ensures that a specified number terminate successfully. Unlike long-running controllers like Deployments, Jobs are designed for one-time tasks such as database migrations, batch processing, or maintenance scripts. Once the task completes, the pod remains available for log inspection before manual or automatic cleanup.

4

What is the main difference between a Job and a CronJob?

5

What is the difference between PersistentVolume (PV) and PersistentVolumeClaim (PVC)?

+21 câu hỏi phỏng vấn

Các chủ đề phỏng vấn DevOps khác

Nắm vững DevOps cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí