Expose an Application via Ingress
The application must be reachable externally using the URL http://external.prepium.local/. Any request whose path starts with / must be routed to the Service web-app.
The task
Context
An existing web application must be exposed externally.
The Deployment web-app and its Service web-app (port 80) already exist in namespace prepium.
Task
The application must be reachable externally using the URL http://external.prepium.local/. Any request whose path starts with / must be routed to the Service web-app.
Create an Ingress named web-app-ingress in namespace prepium that:
- Routes host
external.prepium.local - Path
/withpathType: Prefix - Backend Service
web-appon port80 - Uses API version
networking.k8s.io/v1
What this tests
Expose workloads with services and ingress, and restrict traffic with network policies. On the CKAD exam, Services & Networking tasks are graded purely on what you build in the cluster — not multiple choice — so the only way to get faster is to do them on a real cluster against a clock.
Practice it for real
prepium.sh drops you into your own isolated Kubernetes cluster in the browser — no install, no credit card. You solve the task in a real terminal, hit validate, and a programmatic checker scores exactly what you got right and wrong (with partial credit). The canonical solution unlocks after you attempt it, so you learn the fast, exam-ready way to do it.