error in the jsonpath selector (#4640)

the old jsonpath selector doesn't work because it produce the pod name value to be incorrect
update it to the right jsonpath selector that produces the right pod name
This commit is contained in:
Osama Nabil 2019-07-08 23:25:58 +08:00 committed by mergify[bot]
parent bf0f2272a1
commit 0ad4e0a687
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ All three of these parameters may also be configured via [helm values](/docs/ref
1. Send a request from `sleep` to `httpbin`:
{{< text bash >}}
$ kubectl exec -it $(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name}) -c sleep -- curl -v httpbin:8000/status/418
$ kubectl exec -it $(kubectl get pod -l app=sleep -o jsonpath='{.items[0].metadata.name}') -c sleep -- curl -v httpbin:8000/status/418
* Trying 172.21.13.94...
* TCP_NODELAY set
* Connected to httpbin (172.21.13.94) port 8000 (#0)