Use kubectl get services to inspect Kubernetes Services after deployment. The output shows service type, cluster address, external address, and exposed ports, giving you the endpoint needed to test a microservice. section 6.11.6 section 10.8.3
Use the output according to where the service is running:
- For a local NodePort deployment, find the assigned port and open http://localhost:<port-number>. section 10.8.3 section 6.8.6
- For a production LoadBalancer deployment, find EXTERNAL-IP and open the required application route, such as /video. section 6.11.6 section 10.9.3
- Run it with kubectl get pods and kubectl get deployments to verify that the deployed Kubernetes resources are present and operational. section 7.12 section 10.8.3
Find an external service address
Run kubectl get services and locate the video-streaming row. A LoadBalancer service can show an EXTERNAL-IP such as 20.127.176.147 and expose port 80; use that address with the service's required route to test streaming. section 6.11.6
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) kubernetes ClusterIP 10.0.0.1 <none> 443/TCP video-streaming LoadBalancer 10.0.221.252 20.127.176.147 80:32545/TCP
Inspect a representative service listing showing NAME, TYPE, CLUSTER-IP, EXTERNAL-IP, and PORT(S). section 6.11.6
