March 2020
Intermediate to advanced
626 pages
14h 45m
English
You can access a microservice through the Kubernetes service name, which is a connection from a fixed service IP address to the pod IP address. In this section, you will learn how to access a service using Node Port using the node's IP address.
You can also view the service web page from outside the VM but within the firewall of an enterprise by using the server's IP address. This will require changing the service from ClusterIP to NodePort. Let's get started:
$ kubectl -n istio-lab edit svc productpage
You should have the following initially:
selector: app: productpagesessionAffinity: None type: ClusterIP
Change this to the following:
Read now
Unlock full access