Minikube - how do I get the ip address/host of backend for front end web app?


Using kubernetes and minikube, let's say you have:

deployment A

Web app with loadBalancer type service

deployment B

express.js back end for apis with loadBalancer type service.

To do fetch calls in deployment A, how do I know what the host or ipaddress is for deployment B?

  • Without using NGINX reverse proxy for the api on deployment A.
  • Without having to bring up deployment A first, getting ip address from kubectl get service and hard coding it in the front end app of deployment A. I would be ok with this if the ip address never changed but it does.
-- dman

0 Answers