Visual studio docker container capable of seeing kubernetes pods outside?

I am currently developing docker containers using visual studio, and these container images are supposed to run in a kubernetes cluster that I am also running locally.

Currently, the docker container that is running via visual studio is not being deployed to a kubernetes cluster, but for some reason am I able to ping the kubernetes pod’s ip address from the docker container, but for which I don’t quite understand; should they not be separated, and not be able to reach each other?

  • And it cannot be located on the kubernetes dashboard?
  • And since they are connected, why can’t I use the kubernetes service to connect to my pod from my docker container?

The docker container is capable of pinging the cluster IP, meaning that it is reachable.

nslookup the service is not able to resolve the hostname.