Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get the nodeport of a particular service

https://kubernetes.io/docs/reference/kubectl/jsonpath/

Code Block
themeMidnight
# human readable list
kubectl get services --all-namespaces | grep robot
# machine readable number - via JSONPath
kubectl get --namespace onap -o jsonpath="{.spec.ports[0].nodePort}" services robot)

...