Menu
Coddy logo textTech

Expose The Shop

Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 40 of 45.

challenge icon

Challenge

Easy

Give the shop a stable address. The finished deployment.yaml is in your directory next to a service.yaml with two blanks. Open service.yaml, set the selector label to shop and the port to 80, and save it. Then:

  1. Apply deployment.yaml
  2. Apply service.yaml
  3. Show the shop Service
  4. Show the endpoints of the shop Service

Try it yourself

Terminal
kubectl apply -f deployment.yaml
kubectl get pods

All lessons in Introduction to Kubernetes

Practice on your own: Terminal playground