How to make two Kubernetes Services talk to each other

Hello,

How to make two Kubernetes Services talk to each other? do we need to write any manifest file for this or it is something that written on the app configuration. Can you pls throw some light on it…

Hello @pavan00379,

Assumed that 2 services are in the same k8s cluster and created under ClusterIP service type, then:

  • 2 services can communicate with each other via their cluster IP and port or local DNS ({service_name}.{namespace}.svc.cluster.local)
  • you can use network policy to control the ingress and egress of each service.

Some resources:

Thanks,
Trung,