Kubernetes Concepts Explained: The Shipping Port Guide to Pods, Nodes, and Deployments
Kubernetes concepts explained through a shipping port: pods are containers, nodes are ships, Deployments are manifests, and Services are fixed addresses. This beginner guide pairs each analogy with the real mechanism, walks through one combined YAML example, and shows how desired state and reconciliation keep applications running.
Introduction
Kubernetes concepts explained through a shipping port start with a small surprise. A new engineer sees a pod stuck in a bad state, deletes it to restart the application, and watches a replacement appear seconds later with a new name and a new IP address. Nothing restarted the old pod. Kubernetes noticed that reality no longer matched the declared replica count, so it created a new pod to close the gap. That one moment teaches the central idea of Kubernetes: you describe the desired state, and the system keeps working until reality matches it.
This declarative model is why Kubernetes feels different from logging into a server and starting a process by hand. You do not order a specific machine to run a container forever. You submit objects such as a Deployment that says three copies of an image should exist, a Service that gives those copies one stable address, and probes that define when a copy is ready for traffic. Controllers watch those objects continuously, compare desired state with actual state, and act on the difference. Delete a pod, lose a node, or roll out a new image, and the same reconciliation loop responds.
The shipping-port analogy makes those moving parts easier to hold in your head. Pods are containers on ships, nodes are the ships, the cluster is the fleet plus its harbour master, and the Deployment is the manifest that says how many containers must be aboard. The analogy is a teaching tool, not a perfect model, so this guide pairs every image with the real mechanism underneath it and finishes by showing where the port picture breaks.
1. Kubernetes concepts explained: the port map in one view
Kubernetes concepts explained through a port start with one map: pods are containers, nodes are ships, the cluster is the fleet and harbour master, namespaces are docks, Deployments are manifests, Services are fixed addresses, Ingress is the gate, configuration is cargo instructions, probes inspect, and autoscaling adds capacity at rush hour.
| Concept | Port analogy | What it really does |
|---|---|---|
| Pod | Shipping container on the ship | Smallest deployable unit; one or more containers sharing one IP, port space, and volumes |
| Node | Ship that carries containers | Machine, usually a VM, that runs pods through kubelet and a container runtime |
| Cluster | Whole fleet and harbour master | Group of nodes plus a control plane that stores desired state and decides placement |
| Namespace | Separate docks in one port | Scope for names and resources, such as dev, staging, and prod areas in one cluster |
| Deployment | Manifest saying always 3 aboard | Declares image and replicas; its ReplicaSet replaces failed pods and rolls out updates |
| Service | Port's fixed address | Stable virtual IP and DNS name load-balancing traffic across selected ready pods |
| Ingress | Harbour gate | Routes external HTTP traffic by host and path to Services, with optional TLS |
| ConfigMap | Cargo instructions, not cargo | Non-sensitive configuration kept outside the image; Secrets hold sensitive values |
| Health checks | Inspect before you sail | Readiness gates traffic, liveness restarts stuck containers, startup protects slow starters |
| Autoscaling | More containers at rush hour | HPA adjusts replica count toward metric targets such as 70 percent CPU |
The map works because each analogy preserves the relationship that matters. A container needs a ship the way a pod needs a node. A manifest states how many containers should be aboard the way a Deployment states how many replicas should run. A fixed port address stays useful while individual ships come and go, the way a Service stays stable while pods are replaced. When the relationships match, the analogy teaches the system instead of decorating it.
Underneath the map sits one mechanism: desired state plus reconciliation. Desired state is the set of objects stored through the Kubernetes API, such as three replicas of an image behind a Service. Reconciliation is the loop that observes actual state, compares it with desired state, and acts on the difference. If a pod dies, the loop creates another. If you change the image, the loop replaces pods gradually. Almost every concept in this guide is either a way to declare desired state or a part of the machinery that reconciles it.
Keep that loop in mind while reading the next sections. Beginners often ask which command starts a container, and the honest answer is that no single command does. You change an object, the change is stored, and several components react in sequence. Once that clicks, Kubernetes stops looking like a pile of YAML and starts looking like a port that keeps its own manifest true.
2. Kubernetes concepts explained: cluster and control plane as fleet and harbour master
Kubernetes concepts explained at cluster level separate the harbour master from the ships. The control plane holds desired state and decides placement through the API server, etcd, scheduler, and controllers, while worker nodes run pods. You change objects through the API; controllers continuously reconcile reality toward the state you declared.
A cluster is the whole system: a control plane plus a set of worker nodes. The control plane is the harbour master's office, except it is software rather than a person with a clipboard. Its front door is the API server, which authenticates requests, validates objects, and serves the current state of the cluster to every component that asks. Behind it, etcd stores that state as the cluster's record book. When you run kubectl, you are talking to the API server, and every change you make is written into that record before anything else happens.
Two other control-plane components turn records into action. The scheduler watches for pods that have no node assigned and chooses a suitable ship for each one, weighing resource requests, node capacity, taints, and placement rules. Controllers run the reconciliation loops: the Deployment controller manages ReplicaSets, the ReplicaSet controller maintains pod counts, and many smaller controllers handle endpoints, jobs, and certificates. For a deeper look at how these pieces coordinate, see Kubernetes architecture and workload orchestration.
The control plane never runs your application containers itself. It decides, records, and corrects, while nodes do the carrying. That separation is why a cluster can survive the loss of a worker node: the record of what should exist lives in etcd, not on the ship that sank. When a node disappears, controllers notice missing pods and create replacements on surviving nodes, and the scheduler places them where capacity allows.
3. Kubernetes concepts explained: pods as shipping containers
Kubernetes concepts explained at pod level start with the smallest deployable unit. A pod groups one or more containers that share one IP address, port space, and volumes, and it runs on one node. Pods are disposable: Kubernetes replaces them rather than repairing them, so stable access needs a Service.
A pod is the shipping container in the analogy, but with one important twist: a pod can hold more than one application container. Most pods run a single main container, yet a helper container can ride along when it must share the same network and storage, such as a log shipper or a local proxy. Containers in one pod reach each other on localhost, share mounted volumes, and are scheduled together onto the same node. They also share one fate: when the pod is deleted or its node fails, every container in it goes away together.
Pods are deliberately disposable. A pod receives an IP address when it starts, and that address belongs to that pod instance only. When Kubernetes replaces a pod during a rollout, a node failure, or a scaling event, the new pod gets a new name suffix and usually a new IP. Nothing about a pod is meant to be permanent, which is why you should never hard-code a pod IP in another service or store the only copy of important data on a pod's local filesystem.
That disposability is a feature, not carelessness. Because pods are cheap to replace, Kubernetes can heal by replacement: a crashed container restarts inside its pod, and a lost pod is recreated elsewhere from the same template. The template lives in the Deployment, so the replacement is identical in image and configuration even though its identity is new. The cost of this model is that anything needing a stable address, such as other services calling your application, must go through a Service rather than aiming at pods directly.
Pod status tells you where a container is in its short life. Pending means the pod is accepted but not yet running, often waiting for scheduling or image pulls. Running means at least one container is up. Succeeded and Failed describe pods that finished, which matters for jobs rather than long-running services. Inside a running pod, a crashed container restarts according to the pod's restart policy, with growing delays between attempts, which is why repeated crashes surface as CrashLoopBackOff instead of a tight restart loop hammering the node.
4. Kubernetes concepts explained: nodes and kubelet as ships and crew agent
Kubernetes concepts explained at node level treat each node as a ship that carries pods. A node is usually a virtual or physical machine running kubelet, a container runtime, and networking components. Kubelet watches the API server, starts assigned pods through the runtime, reports status, and restarts failed containers.
A node is a worker machine in the cluster, most often a virtual machine in a cloud account, though physical servers and managed node pools play the same role. Each node offers CPU, memory, storage, and network capacity that pods consume through resource requests. The scheduler places a pod on a node only when the node's allocatable capacity can satisfy the pod's requests, which is why a pod can sit in Pending state when every ship is already full or when placement rules exclude the available nodes.
The kubelet is the agent that makes a node a Kubernetes node. It registers the node with the API server, watches for pods assigned to its node, and asks the container runtime, through the Container Runtime Interface, to pull images and start containers. It also runs probes, reports pod and node status back to the API server, and restarts containers that fail liveness checks. A small networking component on each node, traditionally kube-proxy or an eBPF-based replacement, programs the routing rules that make Service IPs work.
Nodes are replaceable too, just at a larger scale. Managed platforms routinely drain and replace nodes during upgrades, moving pods elsewhere first. Your application should therefore tolerate losing any single node without data loss, which usually means running multiple replicas spread across nodes and keeping durable data in managed storage or external services. Thinking of nodes as ships helps here: cargo survives because the manifest can load it onto another ship, not because one ship is unsinkable.
5. Kubernetes concepts explained: namespaces as separate docks
Kubernetes concepts explained through namespaces treat them as separate docks inside one port. Namespaces scope names and organize resources by team or environment, so two namespaces can each run orders-svc without collision. They are not a hard security boundary by themselves; isolation also needs RBAC, quotas, and network policies.
A namespace is a named scope inside one cluster. Resource names must be unique within a namespace, but the same name can exist in different namespaces, so dev, staging, and prod can each have a Service called orders-svc and DNS resolves it within the right dock. Teams use namespaces to organize workloads by environment, team, or application, and to attach resource quotas and default limits that keep one dock from consuming the whole port.
The dock image can mislead if you treat namespaces as walls. Pods in different namespaces still run on the same nodes, and by default a pod in one namespace can reach a Service in another namespace over the network. A namespace alone does not authenticate users, restrict API permissions, or block traffic. Real isolation layers on top: RBAC decides who may change objects in a namespace, network policies decide which pods may talk to each other, and quotas decide how much capacity a namespace may claim.
Used with those controls, namespaces are the standard unit of multi-tenancy inside a cluster. A platform team can give each product team a namespace with its own quotas, permissions, and policies while sharing the fleet underneath. Without those controls, a namespace is only tidy labeling. Beginners should create namespaces early for organization, then learn RBAC and network policies before trusting a namespace to separate anything sensitive.
6. Kubernetes concepts explained: Deployments and ReplicaSets as the manifest
Kubernetes concepts explained through Deployments treat the Deployment as the shipping manifest. You declare an image and replica count, and a ReplicaSet keeps that many pods running. Changing the pod template triggers a rolling update, failed pods are replaced, and rollback returns the workload to an earlier template revision.
A Deployment is how you run a stateless application. You declare replicas: 3 and image: app:v1, plus the pod template describing containers, ports, resources, and probes. The Deployment creates a ReplicaSet, and the ReplicaSet controller maintains exactly three pods matching that template. Delete one pod and the count drops to two, so the controller creates a replacement. That is the self-healing the new engineer saw: the manifest said three aboard, so the port loaded another container.
Updates work by changing the manifest rather than editing running pods. When you change the image to app:v2, the Deployment creates a new ReplicaSet and gradually shifts replicas from old to new, respecting limits on how many pods may be unavailable or extra during the rollout. Readiness probes decide when new pods may receive traffic, so a bad version that never becomes ready stalls the rollout instead of taking the service down. If the new version misbehaves, rollback re-applies the previous template and the same machinery shifts traffic back.
ReplicaSets are mostly machinery you observe rather than manage directly. You will see them in kubectl output during rollouts, one per revision, with older ones scaled to zero so rollback stays possible. The practical rule is simple: manage Deployments, let ReplicaSets be created for you, and never edit a running pod expecting the change to survive, because the next replacement pod will be built from the template again. Day-two habits like resource requests, rollout history, and revision limits are covered in Kubernetes best practices.
7. Kubernetes concepts explained: Services as the fixed address
Kubernetes concepts explained through Services solve the moving-address problem. Pods receive new IPs when replaced, so a Service provides one stable virtual IP and DNS name. A label selector chooses ready pods, EndpointSlices track their addresses, and traffic is load-balanced across matching endpoints instead of chasing individual pod IPs.
A Service is the port's fixed address. Callers connect to orders-svc, DNS resolves that name to the Service's stable ClusterIP, and the node's networking layer forwards each connection to one of the ready pods behind it. The pods can be replaced, rescheduled, or scaled, and the address callers use never changes. This is the answer to a common beginner question: pods have IPs, but those IPs are temporary, so anything that needs a dependable destination needs a Service.
The connection between a Service and its pods is a label selector. The Service declares selector app: orders, and Kubernetes continuously finds pods carrying that label, checks which of them are ready, and records their addresses in EndpointSlices. When a pod fails its readiness probe, it is removed from the endpoints and stops receiving traffic without being restarted. When a replacement pod becomes ready, it joins the endpoints automatically. A Service with no endpoints almost always means the selector does not match pod labels or no matching pod is ready.
Service types control how far the address reaches. ClusterIP, the default, is reachable only inside the cluster and suits service-to-service calls. NodePort also opens a port on every node, which is simple but clumsy for production exposure. LoadBalancer asks the cloud provider for an external load balancer pointing at the Service. Most HTTP applications combine a ClusterIP Service with an Ingress or Gateway in front, keeping one external entry point while internal callers use stable DNS names.
Service DNS names follow a predictable pattern that beginners should memorize. Within the same namespace, orders-svc is enough. From another namespace, use orders-svc.8. Kubernetes concepts explained: Ingress as the harbour gate
Kubernetes concepts explained through Ingress treat it as the harbour gate for HTTP traffic. Ingress routes external requests by host and path to Services and can terminate TLS with a referenced Secret. An Ingress controller implements the rules; Gateway API is the newer successor model for shared, role-separated entry points.
Ingress gives the cluster one managed entry point for HTTP and HTTPS traffic. Rules match a host such as shop.example.com and a path prefix such as /api, then forward to a Service and port. TLS settings reference a Secret holding the certificate, so the gate can terminate encryption before traffic continues inside the cluster. For beginners, Ingress is the step where an application becomes reachable from a browser instead of only from inside the cluster.
Ingress objects do nothing on their own; an Ingress controller running in the cluster watches them and programs a proxy such as NGINX, Traefik, or a cloud load balancer. If no controller is installed, an Ingress can sit forever without an address. Ingress is also namespace-scoped and intentionally narrow: host and path routing plus TLS are standard, while rewrites, timeouts, and canary weights historically lived in controller-specific annotations. Gateway API is the successor model that splits listener ownership from route ownership and standardizes richer traffic behavior, a comparison covered in Ingress vs Gateway API vs Service Mesh.
A common beginner confusion is expecting Ingress to replace Services. It does not. Ingress routes to Services, and Services route to pods, so a broken selector still breaks the path behind a healthy gate. When an Ingress returns 404 or 503 responses, check the chain in order: the rule's host and path, the Service name and port, the endpoints behind that Service, and only then the controller's own logs.
9. Kubernetes concepts explained: ConfigMaps and Secrets as cargo instructions
Kubernetes concepts explained through configuration separate cargo instructions from cargo. ConfigMaps hold non-sensitive settings such as environment names and log levels outside the image. Secrets hold sensitive values, but base64 encoding is not encryption, so access control and encryption at rest still matter. Changes may require pod restarts to take effect.
A ConfigMap stores configuration separately from the container image, so the same image can run with ENV=prod in one namespace and ENV=dev in another. Values reach containers as environment variables or as files mounted from a volume. Keeping settings outside the image means a configuration change does not require rebuilding and republishing the application, and the same tested image can move from staging to production with different instructions attached.
Secrets hold values that should not sit in plain configuration, such as passwords, tokens, and TLS keys. A Secret's data is base64-encoded in the API, and base64 is an encoding anyone can reverse, not encryption. Protection comes from RBAC limiting who can read Secrets, encryption at rest in etcd, and careful handling in source control. Treating a Secret as safe merely because it looks scrambled is one of the most common beginner mistakes.
Configuration changes also have a timing trap. Environment variables from a ConfigMap are set when a container starts, so editing the ConfigMap does not change a running container's environment. Mounted ConfigMap files usually update in place after a delay, but the application must re-read them. The reliable beginner habit is to restart the workload after configuration changes, for example with a rollout restart, and confirm the new pods picked up the new values. The full treatment is in Kubernetes ConfigMaps and Secrets.
10. Kubernetes concepts explained: probes as inspection before sailing
Kubernetes concepts explained through probes treat health checks as inspection before and during sailing. Readiness probes decide whether a pod receives traffic, liveness probes restart stuck containers, and startup probes protect slow-starting applications. Thresholds such as failureThreshold decide how many failed checks trigger action, preventing one brief hiccup from causing churn.
A readiness probe answers one question: should this pod receive traffic right now? When readiness fails, Kubernetes removes the pod from Service endpoints but leaves the container running, which is correct for a pod that is warming up, overloaded, or temporarily unable to reach a dependency. When the probe passes again, the pod rejoins the endpoints automatically. Readiness is the inspection at the dock gate: cargo that is not ready does not get loaded into the traffic flow.
A liveness probe answers a different question: is this container stuck beyond recovery? When liveness fails repeatedly, kubelet restarts the container. That helps when a process deadlocks but its port still accepts connections, a state readiness alone cannot fix. Liveness must be used carefully, because a probe that fails during a downstream outage can restart every pod at once and turn a partial problem into a full outage. Liveness should test the process itself, not its dependencies.
A startup probe protects applications that need time before they can answer health checks, such as services loading large caches. While the startup probe has not yet succeeded, liveness and readiness checks are held back, and failureThreshold multiplied by the probe period defines how long startup may take. Probe tuning is mostly about honest thresholds: check often enough to react, tolerate enough failures to avoid flapping, and make the health endpoint cheap so inspection itself does not become load.
11. Kubernetes concepts explained: HPA autoscaling at rush hour
Kubernetes concepts explained through autoscaling treat the Horizontal Pod Autoscaler as rush-hour staffing. HPA compares metrics with targets, such as 70 percent CPU utilization, and adjusts Deployment replicas within limits. It needs resource requests and a metrics pipeline; without them, utilization cannot be calculated and scaling decisions stall.
The Horizontal Pod Autoscaler watches load and changes replica count. With a target of 70 percent CPU utilization, sustained usage at 82 percent tells the HPA the current fleet is too small, so it raises replicas, for example from three to five, until average utilization approaches the target. When traffic falls, it scales back down within the minimum and maximum bounds you set. The Deployment still owns the pods; the HPA simply edits the desired replica count that the Deployment enforces.
Two prerequisites decide whether HPA works at all. First, containers need CPU resource requests, because utilization is measured as usage divided by requested CPU; without requests, the percentage has no denominator. Second, the cluster needs a metrics pipeline, usually metrics-server or an external metrics adapter, feeding current values to the HPA controller. When kubectl shows unknown metrics for an HPA, one of those two pieces is missing or broken, and no amount of target tuning will help.
Autoscaling also has honest limits. Adding pods helps when the bottleneck is pod capacity, not when a database is saturated or a downstream service is down. Scaling takes time: new pods must schedule, pull images, start, and pass readiness before they absorb traffic. Requests set too low make utilization look high and trigger scaling too early, while requests set too high waste capacity and delay reaction. The deeper comparison of replica scaling against pod resizing is covered in HPA vs VPA in Kubernetes.
HPA also avoids flapping. It evaluates metrics periodically, tolerates small deviations around the target, and applies stabilization behavior before scaling down, so a brief traffic dip does not immediately remove pods that the next spike needs again. Beginners sometimes expect instant reaction and conclude the HPA is broken when replicas lag a load test by a minute or two. That delay is deliberate: steady scaling beats nervous scaling, especially when new pods need time to become ready.
12. Kubernetes concepts explained: kubectl apply, analogy limits, and beginner troubleshooting
Kubernetes concepts explained through kubectl apply show the whole port working in sequence. The API server validates and stores your objects, controllers create pods, the scheduler assigns nodes, kubelet starts containers, probes gate traffic, and Services publish endpoints. The analogy helps, but pods, namespaces, and control-plane software behave differently from physical cargo.
Here is the journey step by step. First, kubectl sends your YAML to the API server, which authenticates you, checks permissions, validates the objects, and stores them in etcd. Second, controllers react: the Deployment controller creates a ReplicaSet, and the ReplicaSet controller creates pod objects with no node assigned. Third, the scheduler chooses a node for each pending pod and records the binding. Fourth, kubelet on that node sees its assignment, asks the container runtime to pull the image and start the containers, and runs the probes you declared. Fifth, once readiness passes, the pod's address is added to the Service's EndpointSlices and traffic begins to flow. No step starts a container directly from your terminal; each component reacts to state stored in the API, which is why commands for inspecting that state matter, as covered in the kubectl master guide.
The combined YAML below shows the port pieces working together for one small application. A ConfigMap carries instructions, the Deployment declares three replicas with probes and resource requests, the Service gives them a fixed address, Ingress opens the gate, and the HPA adds capacity at rush hour. Replace the example image with your own before applying it to a real cluster.
Where the analogy breaks is as instructive as where it holds. Pods are not cargo you preserve; they are disposable copies rebuilt from a template, and losing one is routine rather than a shipping accident. Namespaces are not separate ports; they share the same ships, network, and control plane unless you add policies. The harbour master is not a person making judgment calls; it is several software loops reacting to stored state, which makes the system predictable but also literal about bad instructions. There is no captain on each node making decisions; kubelet follows assignments and reports status. Keep the port for orientation, then trust the mechanisms when the two disagree.
| Symptom | Root Cause | Diagnosis Command | Resolution |
|---|---|---|---|
| Pod stuck in Pending | No node can satisfy requests or placement rules | kubectl describe pod <pod> and read scheduling events |
Lower requests, add capacity, or fix taints and affinity |
| ImagePullBackOff | Image name, tag, or registry credentials are wrong | kubectl describe pod <pod> and check pull errors |
Fix the image reference or add image pull secrets |
| CrashLoopBackOff | Container starts, exits, and restarts repeatedly | kubectl logs <pod> --previous |
Fix the application error, config, or command causing exit |
| Service has no endpoints | Selector matches no ready pods | kubectl get endpointslices -l kubernetes.io/service-name=<svc> |
Align pod labels with the selector and fix readiness |
| Readiness probe failing | Pod runs but its ready endpoint returns errors | kubectl describe pod <pod> and check probe events |
Fix the health endpoint or its dependency checks |
| Ingress returns 404 | Host or path does not match any rule | kubectl describe ingress <name> |
Correct the host, path, or backend Service reference |
| ConfigMap change not picked up | Running containers keep old environment values | kubectl exec <pod> -- printenv |
Restart the workload so new pods read new config |
| HPA shows unknown metrics | Missing resource requests or metrics pipeline | kubectl describe hpa <name> |
Set CPU requests and install or repair metrics-server |
A first-week checklist turns the map into practice. Create a namespace and deploy the YAML above with your own image. Delete a pod and watch the ReplicaSet replace it. Break the Service selector, observe empty endpoints, then fix it. Change the image tag and follow the rolling update, then roll back. Edit the ConfigMap, restart the workload, and confirm the new value inside a pod. Generate load and watch the HPA add replicas, then read the events with kubectl describe until each status change makes sense. That loop of declare, observe, and explain is the real skill the port analogy is pointing at.
Frequently Asked Questions
### What are the core Kubernetes concepts explained simply?
The core Kubernetes concepts explained simply are pods, nodes, clusters, namespaces, Deployments, Services, Ingress, ConfigMaps and Secrets, probes, and autoscaling. Pods run containers on nodes, the control plane stores desired state and reconciles it, Deployments keep replicas running, Services give pods stable addresses, and Ingress exposes HTTP traffic from outside.
What is the difference between a pod and a node?
A pod is the smallest deployable unit: one or more containers sharing one IP address, port space, and volumes. A node is the machine, usually a VM, that runs pods through kubelet and a container runtime. Many pods share one node, and a pod runs on exactly one node at a time.
Why does Kubernetes need a Service if pods have IPs?
Pod IPs are temporary because pods are disposable and replacements receive new addresses. A Service provides one stable virtual IP and DNS name, selects ready pods by label, and load-balances traffic across their current endpoints. Callers use the Service address and never need to track which pod instances exist.
What does declarative mean in Kubernetes?
Declarative means you describe the desired state, such as three replicas of an image behind a Service, instead of issuing step-by-step commands. Kubernetes stores that state through the API server and controllers continuously reconcile actual state toward it, replacing failed pods and applying changes until reality matches your declaration.
What happens when a pod crashes?
If a container crashes, kubelet restarts it inside the same pod with increasing delay, which surfaces as CrashLoopBackOff when it keeps failing. If the pod itself is deleted or its node is lost, the ReplicaSet creates a replacement pod from the template, possibly on another node, with a new name and IP.
Is a namespace a security boundary?
No. A namespace scopes names and organizes resources, but pods in different namespaces share nodes and can reach each other by default. Real isolation requires RBAC for API permissions, network policies for traffic rules, and resource quotas for capacity. Treat namespaces as organization first, then add those controls deliberately.
What is the difference between a Deployment and a Service?
A Deployment manages pods: it declares an image and replica count, replaces failed pods, and performs rolling updates and rollbacks. A Service manages access: it gives the pods a stable address and load-balances traffic across ready endpoints. Deployments answer how many copies run; Services answer how callers reach them.
How does Kubernetes self-healing work?
Self-healing is reconciliation applied to failures. Controllers compare desired state with actual state and act on differences: a missing pod is recreated, a failed container is restarted by kubelet, an unready pod leaves Service endpoints, and a lost node's pods are rescheduled elsewhere. You declare the target once, and the loops keep restoring it.
Preparing for Senior Platform & SRE Interviews
Practice real-world cluster triage, RBAC debugging, and pod scheduling scenarios in our Kubernetes scenario interview questions hub.
Explore Interview Scenarios →