Kubernetes how to access a service from another namespace
You can access to the Service in the pod using the following ways.
Using the env variables,
https://kubernetes.io/docs/concepts/services-networking/service/#discovering-services
Using internal service name,i.e.> YOURSERVICENAME.NAMESPACE.svc.cluster.local
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#services