March 2020
Intermediate to advanced
626 pages
14h 45m
English
You can access a microservice through its dynamic IP address. This can change if the microservice is scheduled to another node:
$ kubectl -n istio-lab get svc -o custom-columns=NAME:.metadata.name,CLUSTER_IP:.spec.clusterIPNAME CLUSTER_IPdetails 10.106.179.233productpage 10.100.221.255ratings 10.109.32.8reviews 10.107.73.66
In the preceding code, the productpage service IP address is 10.100.221.255. The IP might be different in your output.
$ PRODUCTPAGE_IP=$(kubectl -n istio-lab get svc ...
Read now
Unlock full access