Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 552 Bytes

File metadata and controls

29 lines (26 loc) · 552 Bytes

Step 4

Create a mongo service to add persistence and shows how service can help connecting pods

  • Display service and replicatset definition
cat mongo.yaml
  • Create the mongo pods and the service
kubectl create -f mongo.yaml
  • Display service information
kubectl get svc
kubectl describe svc mongo
  • Display the chat application
kubectl get po -o wide
ssh core@<NODE_IP> -L 8081:<BACK_POD_IP>:8081
ssh core@<NODE_IP> -L 8080:<FRONT_POD_IP>:8080
  • Delete service
kubectl delete svc mongo