File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/ja/docs/tasks/access-application-cluster Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ jsonpathは次のように解釈されます:
62
62
` range ` を使用して要素を個別に繰り返し処理することにより、フォーマットをさらに制御できます。
63
63
64
64
``` shell
65
- kubectl get pods --all-namespaces -o= jsonpath=' {range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' | \
65
+ kubectl get pods --all-namespaces -o jsonpath=' {range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' | \
66
66
sort
67
67
```
68
68
71
71
特定のラベルに一致するPodのみを対象とするには、-lフラグを使用します。以下は、` app=nginx ` に一致するラベルを持つPodのみに一致します。
72
72
73
73
``` shell
74
- kubectl get pods --all-namespaces -o= jsonpath=" {..image}" -l app=nginx
74
+ kubectl get pods --all-namespaces -o jsonpath=" {..image}" -l app=nginx
75
75
```
76
76
77
77
## Podの名前空間でコンテナイメージ一覧をフィルタリングする {#list-container-images-filtering-by-pod-namespace}
You can’t perform that action at this time.
0 commit comments