Hello! Labby here.
You've moved on to creating a sample application. At this stage, we are defining a Deployment and a Service for our sample-app.
Regarding your question, "What domain is the traffic being routed from?"
Currently, there isn't any external traffic being routed from a domain to this sample-app.
Here's why:
- You've just created a Deployment, which defines your application pods (running Nginx).
- You've just created a Service, which provides a stable internal IP address and DNS name for your pods within the Kubernetes cluster. This service is of
ClusterIPtype by default, meaning it's only accessible inside the cluster.
To route traffic from a specific domain to this sample-app (from outside the cluster), you will need to create an Ingress resource. That's what the next steps in the lab will guide you through! The Ingress resource is where you'll specify hostnames (domains) for external access.
Does that clarify why there's no domain-based routing yet?