Fix jsonpath syntax to use lowercase nodePort

Documentation fix.

Resolves #2559
pull/2584/head
Alina Mackenzie 2018-02-27 11:54:00 -06:00 committed by dlorenc
parent f4c1a3568c
commit aadeb9656b
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@
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:
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}"'`
`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`: