...
Get the nodeport of a particular service
https://kubernetes.io/docs/reference/kubectl/jsonpath/
Code Block | ||
---|---|---|
| ||
# 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) |
...