Expose Multiple Ingress Hosts with the NGINX Ingress Controller
Intermediate · 30 minutes · 4 tasks, checked automatically · 100 points
In this lab you will install the NGINX Ingress Controller on a local kind cluster (no cloud LoadBalancer required), deploy two separate web applications, and configure an Ingress resource that routes traffic to each app based on a distinct hostname. You will verify end-to-end HTTP routing using `curl` with a custom `Host` header — the standard technique for testing Ingress rules locally without DNS.
What you’ll learn
- Install the NGINX Ingress Controller using its official Helm chart and expose it via a NodePort service
- Deploy two distinct web applications (app-apple and app-banana) in a dedicated namespace
- Configure a single Ingress resource with two host-based routing rules and verify HTTP responses using curl with Host headers
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, helm, multi-host, routing, kind, nodeport
Create a free account to start this lab.
Keep going
- Route HTTP Traffic with an Ingress Controller
- 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