docs(k8s): add a note about multi-container pods (#7815)

This commit is contained in:
afdesk
2024-12-09 18:12:47 +06:00
committed by GitHub
parent da17dc7278
commit 11dbf54884

View File

@@ -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 arent 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: