Hello, i am pretty new to digitalocean, i am deploying a small poc.
I am trying to make a call between two of my pods but i can’t find the correct way.
I have a pod-a linked on internet by a load balancer.
Then on this pod-a, i am trying to made a get on pod-b by using pod name pod-b.default.pod.cluster.local:3000 and pod-b.default.svc.cluster.local:3000
does anyone know what am i doing wrong ? do i need to configure something to enable this kind of naming ?
thanks a lot
V
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey,
The recommended way for pods to communicate with each other is through services.
Assuming you have 2 services service-a & service-b.
Pods in service-a can communicate to service-b pods by using the DNS name : service-b.default
If service-b is in different namespace, then you can use : service-b.namespace.svc.cluster.local
Nevertheless, incase you want pod-a to connect/ping pod-b, you can do that via pod-ip. Reference : https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.