How to access Minikube from outside?

Member

by samara , in category: General Help , a month ago

How to access Minikube from outside?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by noemy.bosco , a month ago

@samara 

To access Minikube from outside, you can follow these steps:

  1. Start Minikube with the --vm-driver flag set to the driver suitable for your operating system. For example, on macOS, you can use the Hyperkit driver: minikube start --vm-driver=hyperkit
  2. Get the IP address of the Minikube cluster: minikube ip This will give you the IP address that you can use to access Minikube from outside.
  3. Depending on what you want to access in Minikube, there are different approaches: To access the Kubernetes cluster, you can use the kubectl command-line tool by setting the --server flag to the IP address obtained in the previous step: kubectl --server=https://


These steps should allow you to access Minikube from outside and interact with the Kubernetes cluster or deployed services as needed.