DevOps

Kubernetes Advanced

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

24 domande da colloquio·
Mid-Level
1

What is a StatefulSet in Kubernetes?

Risposta

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?

Risposta

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?

Risposta

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 domande da colloquio

Padroneggia DevOps per il tuo prossimo colloquio

Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.

Inizia gratis