Skip to content

Commit

Permalink
docs(k8s): add a note about multi-container pods
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Oct 29, 2024
1 parent c434775 commit 6e54e06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/target/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ for example:
trivy k8s --report summary
```
!!! note "Multi-container pods"
For multi-container pods, it may be challenging to associate results with specific images in the 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` and `--format json` options.
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:
Expand Down

0 comments on commit 6e54e06

Please sign in to comment.