Data Engineering

Kubernetes - Fundamentals

Pods, Deployments, Services, Ingress, ConfigMaps, Secrets, namespaces, kubectl, YAML manifests

20 interview questionsยท
Mid-Level
1

What is the smallest deployable unit in Kubernetes?

Answer

The Pod is the smallest deployable unit in Kubernetes. A Pod represents one or more containers that share the same network and storage. It forms the basic building block upon which all other Kubernetes abstractions like Deployments, ReplicaSets, and Services are built.

2

Which Kubernetes component is responsible for maintaining a specified number of Pod replicas running?

Answer

A Deployment manages ReplicaSets which maintain the desired number of Pods running. It provides rolling update, rollback, and scaling capabilities. Deployment is the recommended way to deploy stateless applications in Kubernetes.

3

Which kubectl command lists all Pods across all namespaces?

Answer

The command kubectl get pods --all-namespaces (or -A for short) displays all Pods from all namespaces. By default, kubectl operates in the default namespace. The --all-namespaces flag allows viewing system resources in kube-system as well as those in other namespaces.

4

Which Kubernetes Service type exposes Pods only within the cluster?

5

How to store non-sensitive configuration data in Kubernetes?

+17 interview questions

Master Data Engineering for your next interview

Access all questions, flashcards, technical tests, code review exercises and interview simulators.

Start for free