Projects

Let us try to understand a bit more about how the service object is able to route traffic to the Pod.

If you run the below command:

kubectl get service nginx-service -o wide

You will get the output similar to this:

NAME            TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE   SELECTOR
nginx-service   ClusterIP   10.100.71.130   <none>        80/TCP    4d    app=nginx-pod

As you already know, the service’s type is ClusterIP, and in the above output, it has the IP address of 10.100...
Learn More