Expose The Shop
Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 40 of 45.
Challenge
EasyGive 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:
- Apply
deployment.yaml - Apply
service.yaml - Show the
shopService - Show the endpoints of the
shopService
Try it yourself
Terminal
kubectl apply -f deployment.yaml
kubectl get podsAll lessons in Introduction to Kubernetes
4Deployments
Creating A DeploymentScalingDeployments From ManifestsUpdating ImagesRolling BackRecap - Deployment Manager10Web Shop Project
Project OverviewWrite The DeploymentPractice on your own: Terminal playground