Skip to main content

10. Lab: expose a Deployment with a Service

Hands-on — front a Deployment with a ClusterIP Service and confirm live endpoints.

⏱ ≈ 25 min this module · 📚 ≈ 6.9 h full track

🔒 Unlock this course to read the material and run the labs.

See options to unlock →
🔒 The written material unlocks with the course.
🧪 Hands-on lab Medium · 160 XP · 25min

Goal

Front a Deployment with a ClusterIP Service and confirm the Service has live endpoints.

Requirements (your default namespace, lab)

  • A Deployment api (image nginx:1.25, 2 replicas, label app=api)
  • A Service api of type ClusterIP selecting app=api, port 80
  • The Service must have 2 ready endpoints (the two Pod IPs)

🔒 Unlock the course to run this lab.