Search code examples
kubernetesmicroservicesistio

What is fully qualified service name for a service in minikube


I have a service running in namespace istio-system , I want to connect it with pod in different namespace say default . My cluster is running on minikube . How to do the same ? I tried myService.istio-system.svc.cluster.local , but it didnot worked and from where its picking this i.e from which configuration file . I know in normal k8 cluster but not in minikube Any help would be appreciated

Added by BMW

The user in fact is asking a XY Problem

Here is the real question, he put in comment.

I want to make use of kubectl port forwarding technique to forward traffic from external world to service running inside minikube so that I can access it from outside I am trying below command :

kubectl port-forward --address 0.0.0.0 svc/kiali.istio-system.svc.cluster.local 31000 31000 
Error from server (NotFound): services "kiali.istio-system.svc.cluster.local" not found


Solution

  • It worked a bit different in my case , we have to explicitly specify namespace (Not Using fully qualified Domain name ) . I got help from below post https://docs.giantswarm.io/guides/accessing-services-from-the-outside/ Thanks everyone for help

    kubectl port-forward -n istio-system --address 0.0.0.0 svc/kiali.istio-system.svc.cluster.local 31000 31000