liveBook · Manning

Service

As explained in Developer Experience on Kubernetes

A Service is a Kubernetes resource that provides a stable network endpoint for a set of application workloads.

A Service is a Kubernetes resource that gives a Deployment a network endpoint for application calls, usually from within the cluster. It separates callers from the individual Pods managed by the Deployment, while an Ingress can expose the Service outside the cluster. section 3.3.3

Use a Service as part of the application resource pattern:

  • Pair it with a Deployment that manages the replicated application Pods. section 3.3.3
  • Define it alongside the other Kubernetes manifests required to run and make the application available. section 3.3.2
  • Add an Ingress when clients outside the cluster must reach the application through the Service. section 3.3.3
  • Apply the manifests to the cluster with the Kubernetes API, commonly through kubectl. section 3.3.3 section 3.3.2

Appointments application

A containerized appointments application uses a Deployment for its replicated Pods and a Service to make that application available for network calls. An Ingress can then provide access from outside the cluster. During local development, applying the configuration creates or updates the required resources before the application is exercised with an HTTP request. section 3.3.3 section 3.3.2

How Developer Experience on Kubernetes covers it

How deep it goes
Defines the Service’s role in application exposure but stops short of detailing its manifest fields or networking implementation.
Examples
Uses a containerized appointments application deployed through Kubernetes manifests and exercised with HTTP requests.
What it assumes
Assumes a containerized application and introduces the need to manage Kubernetes resources through manifests.
What you can do after
Operate application availability by defining Kubernetes manifests and applying them with kubectl or related deployment commands.
How it connects
Connects Deployments and Pods to Ingress, Kubernetes manifests, the Kubernetes API, and kubectl.

Also explained in

Compare how 13 books explain service →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.