To troubleshooting a service, we get its IP address using the below command:


When testing the connection using the "ping" utility, we don't get any response.

Services don't use the "ICMP" protocol, that the "ping" command uses.

To be able to troubleshoot services, we use tools that work with the applications they "represent".

If we have "nginx" pods for example, we could use the "telnet" or "netcat" programs for example as shown below
:


Or:

Remark:

We get the service-ip and the port-number from the above command "kubectl get svc".

Another way to check our service, is to "describe" it, to see if it is associated with any endpoints, using the below command:

Brando Sabatini and Ikbal C ©. Powered by Blogger.