Chapter 5. Services: enabling clients to discover and talk to pods

This chapter covers

  • Creating Service resources to expose a group of pods at a single address
  • Discovering services in the cluster
  • Exposing services to external clients
  • Connecting to external services from inside the cluster
  • Controlling whether a pod is ready to be part of the service or not
  • Troubleshooting services

You’ve learned about pods and how to deploy them through ReplicaSets and similar resources to ensure they keep running. Although certain pods can do their work independently of an external stimulus, many applications these days are meant to respond to external requests. For example, in the case of microservices, pods will usually respond to HTTP requests coming either ...

Get Kubernetes in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.