mirror of https://github.com/istio/istio.io.git
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:
parent
bf0f2272a1
commit
0ad4e0a687
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue