Kubernetes Service Discovery Simulator

The client only knows a name. The platform keeps the name → endpoints table correct while pods die, start and scale.

Sent: 0 Delivered: 0 Failed: 0
Client
Service (stable name + registry)
Pods (come and go)
CLIENT APP calls only
payment-service

payment-service

ClusterIP 10.96.21.4 · CoreDNS name

Event log

What to notice

  1. Client config never changes: payment-service.
  2. Kill a pod: it vanishes from the registry; no human edits anything.
  3. Add a pod: starts (blue), passes readiness, then joins the table.
  4. Redeploy: the IP changes, the name does not.
  5. Service Discovery = stable name + auto-maintained registry + health check + load balancing.