Use “kubectl” command to list all the pods in a specific namespace, in this case “mynamespace”:
kubectl get pods -n mynamespace
List all pods deployed in the “default” namespace:
kubectl get pods
To ssh into Kubernetes pod, in this case ssh into a busybox pod.
kubectl exec -it busybox-<id> -- /bin/sh
Obtain the quote-service pod’s IP address using the following command:
kubectl get pods -n development -o wide
Try to hit the quote-service pod via its IP address using wget from busybox
wget <Pod IP address>:<Expose Port Number>
wget 10.244.0.29:8080
Check the contain of the “index.html” file. This mean we are able to access the newly created “quote-service” pod from “BusyBox” pod