Calling an external service from within Minikube

前端 未结 2 1986
长情又很酷
长情又很酷 2020-12-10 10:00

I have a service (/deployment/pod) running in my Minikube (installed on my Mac) that needs to call an external http service that runs directly on my Mac (i.e. outside Miniku

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 10:16

    Because your minikube is running on a virtual machine on your laptop , you just need minikube ssh into that machine and enter the address of your external service into the /etc/hosts file of that virtual machine.

提交回复
热议问题