Accessing the Apps

Access an application deployed by Kubernetes.

Deploying a Service object

In order to access the application from a stable name or IP address, or even from outside the cluster, you need a Kubernetes Service object. We’ll discuss Service objects in detail in the next chapter, but, for now, it’s enough to know that they provide a stable DNS name and IP address for a set of Pods.

The following YAML defines a Service that will work with the Pod replicas previously deployed.

Get hands-on with 1200+ tech skills courses.