DevOps

Kubernetes Advanced

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

24 Interview-Fragen·
Mid-Level
1

What is a StatefulSet in Kubernetes?

Antwort

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?

Antwort

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?

Antwort

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 Interview-Fragen

Meistere DevOps für dein nächstes Interview

Zugang zu allen Fragen, Flashcards, technischen Tests, Code-Review-Übungen und Interview-Simulatoren.

Kostenlos starten