Merge pull request #31567 from Arhell/fix

[ja] fixed the list container images by pod section
This commit is contained in:
Kubernetes Prow Robot 2022-02-04 09:00:00 -08:00 committed by GitHub
commit 517ec927bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ jsonpathは次のように解釈されます:
`range`を使用して要素を個別に繰り返し処理することにより、フォーマットをさらに制御できます。
```shell
kubectl get pods --all-namespaces -o=jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' |\
kubectl get pods --all-namespaces -o jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' |\
sort
```
@ -71,7 +71,7 @@ sort
特定のラベルに一致するPodのみを対象とするには、-lフラグを使用します。以下は、`app=nginx`に一致するラベルを持つPodのみに一致します。
```shell
kubectl get pods --all-namespaces -o=jsonpath="{..image}" -l app=nginx
kubectl get pods --all-namespaces -o jsonpath="{..image}" -l app=nginx
```
## Podの名前空間でコンテナイメージ一覧をフィルタリングする {#list-container-images-filtering-by-pod-namespace}