How to access the service located in minikube from outside?

by clyde_reichert , in category: General Help , 3 months ago

How to access the service located in minikube from outside?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by gabrielle.kub , 3 months ago

@clyde_reichert 

To access a service located in minikube from outside, you can follow these steps:

  1. Start minikube: minikube start
  2. Create a service to expose your application: kubectl create deployment my-app --image=your-image kubectl expose deployment my-app --type=NodePort --port=
  3. Get the service details: kubectl get service my-app Note the
  4. Access the service from outside: If you are running minikube on your local machine, you can access the service using the minikube IP: minikube ip Open a browser and enter


That's it! You should now be able to access the service located in minikube from outside.