A Kubernetes service is an abstraction serving a set of pods. The pods that a service defines or represents are selected using label selectors specified in the service spec. A service's label selector expression must be included in a pod's labels for the service to represent the pod. For example, if a service selector expression is "app=hello-world", a pod's labels must include the label "app=hello-world" for the service to represent the pod. A service is accessed at one or more endpoints provided by the service. The number of endpoints available is equal to the number of pod ...
© Deepak Vohra 2017
Deepak Vohra, Kubernetes Management Design Patterns, 10.1007/978-1-4842-2598-1_7
7. Using Services
Deepak Vohra1
(1)White Rock, British Columbia, Canada
Get Kubernetes Management Design Patterns: With Docker, CoreOS Linux, and Other Platforms 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.