Remove the description of the old jsonpath ..image, Retain the explanation of the new jsonpath
parent
eccb792c5e
commit
f22034ad40
|
@ -38,9 +38,12 @@ tr -s '[[:space:]]' '\n' |\
|
||||||
sort |\
|
sort |\
|
||||||
uniq -c
|
uniq -c
|
||||||
```
|
```
|
||||||
|
The jsonpath is interpreted as follows:
|
||||||
|
|
||||||
The above command will recursively return all fields named `image`
|
- `.items[*]`: for each returned value
|
||||||
for all items returned.
|
- `.spec`: get the spec
|
||||||
|
- `.containers[*]`: for each container
|
||||||
|
- `.image`: get the image
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
When fetching a single Pod by name, for example `kubectl get pod nginx`,
|
When fetching a single Pod by name, for example `kubectl get pod nginx`,
|
||||||
|
|
Loading…
Reference in New Issue