So I have a few services running using nodejs, in more than one kubernetes pod.
These services obviously need to talk to each other, and be able to find the database included in this kubernetes cluster.
In docker-compose I could just use the container name and it would automatically route me to the correct one, with kubernetes it does not seem to be the case.
How do I route to specific containers in different pods in Kubernetes? I tried service names, using the namespace set up by the pipeline's admin team (
<NAMESPACE>.svc.cluster.local), and an ExternalName, but every time I get the same error:
Error: getaddrinfo ENOTFOUND
Any advice would be appreciated as I am new to kubernetes.