Find the IP address of your application, then visit the application on your browser to confirm installation:
kubectl get service frontend-external
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
frontend-external LoadBalancer 10.19.244.242 146.148.112.234 80:31937/TCP 45h
Visit http://EXTERNAL-IP/ and the application home page should be rendered:
We are exposing the frontend application using service of type Load LoadBalancer. Lately, we will changed to ClusterIP and use the Service Mesh Ingress Gateway to expose the service outside of the cluster. kubernetes-manifests/frontend.yaml#L89
apiVersion: v1
kind: Service
metadata:
name: frontend-external
spec:
type: LoadBalancer
selector:
app: frontend
ports:
- name: http
port: 80
targetPort: 8080