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












