Table of contents
  1. Use a web browser to connect to the app via the Service

Use a web browser to connect to the app via the Service

curl http://<public-node-ip>:<node-port>

can be get by using the command `kubectl describe pods hello-pod` ```bash (base) ➜ kubectl describe pods hello-pod Name: hello-pod Namespace: default Priority: 0 Service Account: default Node: k3d-mycluster-server-0/172.31.0.2 Start Time: Fri, 04 Oct 2024 10:39:48 -0400 Labels: version=v1 zone=prod Annotations: Status: Running IP: 10.42.0.9 ... ``` Here the public-node-ip is :172.31.0.2 can be get using the command `kubectl get services svc-sidecar` ``` (base) ➜ kubectl get services svc-sidecar NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc-sidecar LoadBalancer 10.43.61.33 80:30943/TCP 31m ``` Here the node-port is : 30943 Then in your terminal use the following command to access the app in that Pod: `curl http://172.31.0.2:30943`