From 11dbf54884d5dad6d528039c54199c8f339b75de Mon Sep 17 00:00:00 2001 From: afdesk Date: Mon, 9 Dec 2024 18:12:47 +0600 Subject: [PATCH] docs(k8s): add a note about multi-container pods (#7815) --- docs/docs/target/kubernetes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/target/kubernetes.md b/docs/docs/target/kubernetes.md index 291c9fb7728e..9dfe52ee89ff 100644 --- a/docs/docs/target/kubernetes.md +++ b/docs/docs/target/kubernetes.md @@ -38,6 +38,10 @@ for example: trivy k8s --report summary ``` +!!! note "JSON result for multi-container pods" + For multi-container pods, it may be challenging to associate results with specific images in the json summary report. Kubernetes treats a pod as a single object, so individual images within the pod aren’t distinguished. + For detailed information, please use the `--report all` option. + By default Trivy will look for a [`kubeconfig` configuration file in the default location](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/), and use the default cluster that is specified. You can also specify a `kubeconfig` using the `--kubeconfig` flag: