Kubernetes Core • Pod Lifecycle & Health • Networking From DevOps Production & Interview Perspective (6+ years)

Source: Dev.to | Jan 11, 2026 (UTC)

PART 1 — KUBERNETES CORE (WHAT REALLY HAPPENS)

1. What Kubernetes Actually Does (Behavioral View)

Kubernetes is not running containers.
Kubernetes is constantly comparing:

Desired State (YAML)
vs
Current State (Reality)

If they differ → Kubernetes acts.

Example

You say:

replicas: 3

Enter fullscreen mode

Exit fullscreen mode

Reality:

Kubernetes behavior:

DevOps responsibility:
You describe intent, Kubernetes enforces it.

2. Kubernetes Control Loop (THIS IS CORE)

Every controller does this loop:

  1. Read desired state from API
  2. Compare with current state
  3. Take action
  4. Repeat forever

Why this matters in production

Interview question:
Why deleting a Pod “fixes” things temporarily?
Answer: Controller recreates it.

3. Core Objects — Real Behavior, Not Definitions

Pod (Runtime Unit)

Behavior

DevOps attention

Production debugging

kubectl describe pod kubectl logs

Enter fullscreen mode

Exit fullscreen mode

ReplicaSet (Safety Net)

Behavior

DevOps reality

Production insight

Deployment (CONTROL CENTER)

Behavior

DevOps responsibility

Critical rule

spec.selector is immutable

Why

Production failure

Namespace (BOUNDARY)

Behavior

DevOps responsibility

Production issue

4. kubectl — Your Stethoscope

DevOps does NOT guess.
DevOps observes behavior.

Debug order (ALWAYS):

  1. kubectl get
  2. kubectl describe
  3. kubectl logs
  4. kubectl exec

PART 2 — POD LIFECYCLE & HEALTH (WHERE MOST OUTAGES COME FROM)

1. Pod Lifecycle — Real Meaning

Pending

Means

DevOps checks

Production example

Running

Means

Running ≠ Ready

CrashLoopBackOff

Behavior

DevOps responsibility

Debug

kubectl logs --previous

Enter fullscreen mode

Exit fullscreen mode

2. Init Containers — Dependency Control

Behavior

DevOps use cases

Production mistake

3. Probes — TRAFFIC & RECOVERY CONTROL

Liveness Probe

Behavior

DevOps attention

Bad usage

Readiness Probe (MOST IMPORTANT)

Behavior

DevOps responsibility

Production failure

Startup Probe

Behavior

DevOps use

4. Termination Behavior (ZERO-DOWNTIME)

Sequence

  1. Pod marked terminating
  2. Readiness fails
  3. Traffic stops
  4. SIGTERM sent
  5. App shuts down
  6. Pod deleted

DevOps responsibility

PART 3 — NETWORKING (THIS IS WHERE SENIORS WIN)

1. Kubernetes Networking Laws

Rules

  1. Every Pod has unique IP
  2. No NAT between Pods
  3. Services are virtual
  4. DNS always used

2. Service Behavior (NOT JUST TYPES)

ClusterIP

Behavior

DevOps attention

NodePort

Behavior

DevOps use

LoadBalancer

Behavior

DevOps responsibility

3. Service → Pod Mapping (COMMON FAILURE)

Behavior

Failure

Debug

kubectl get endpoints

Enter fullscreen mode

Exit fullscreen mode

4. DNS — HOW PODS TALK

Behavior

DevOps rule

5. Ingress — HTTP CONTROL

Ingress

Ingress Controller

DevOps responsibility

6. Network Policies (ADVANCED)

Behavior

DevOps use

7. Production Debug Flow (REAL)

User reports: “App down”

DevOps steps

  1. Is Ingress reachable?
  2. Is Service healthy?
  3. Are endpoints present?
  4. Are Pods ready?
  5. Are probes passing?
  6. Are logs clean?

WHAT IS DEVOPS ACTUALLY RESPONSIBLE FOR?

NOT

YES

DevOps ensures failures are safe, isolated, and recoverable.

FINAL INTERVIEW TRUTH

A 6-year DevOps Engineer is judged on:

For further actions, you may consider blocking this person and/or reporting abuse

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *

Читайте також