Route HTTP Traffic with an Ingress Controller
Intermediate · 30 minutes · 4 tasks, checked automatically · 100 points
In this hands-on lab you will install the NGINX Ingress Controller on a local kind cluster, deploy two small web applications, and configure Ingress resources to route HTTP traffic to each application based on URL path rules. By the end you will understand how a single entry-point can fan traffic out to multiple back-end services — a fundamental pattern in Kubernetes networking.
What you’ll learn
- Install the NGINX Ingress Controller using its official manifests and verify it becomes Ready
- Deploy two distinct web applications with ClusterIP Services in a dedicated namespace
- Create an Ingress resource that routes /app1 traffic to the first app and /app2 traffic to the second app, then validate end-to-end HTTP routing
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: ingress, nginx, networking, http-routing, kind, path-based-routing, kubernetes
Create a free account to start this lab.
Keep going
- Expose a Service of type LoadBalancer (cloud-provider-kind)
- Headless Services and DNS-Based Service Discovery
- Cluster DNS Deep Dive: CoreDNS, FQDN Resolution, and DNS Debugging
- ExternalName Services: Map In-Cluster Names to External Endpoints
- Path- and Host-Based Routing with a Single Ingress
- Expose Multiple Ingress Hosts with the NGINX Ingress Controller