8000 minikube/docs/networking.md at master · aiminho/minikube · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 578 Bytes

networking.md

File metadata and controls

12 lines (7 loc) · 578 Bytes

Networking

The minikube VM is exposed to the host system via a host-only IP address, that can be obtained with the minikube ip command. Any services of type NodePort can be accessed over that IP address, on the NodePort.

To determine the NodePort for your service, you can use a kubectl command like this (note that nodePort begins with lowercase n in JSON output):

kubectl get service $SERVICE --output='jsonpath="{.spec.ports[0].nodePort}"'

We also have a shortcut for fetching the minikube IP and a service's NodePort:

minikube service --url $SERVICE

0