Trivy Kubernetes Scan Error #5639
-
QuestionHi there, I am doing trivy compliance scan in an EKS cluster. I am getting the following error for multiple times. I was trying same things in another account's EKS cluster, but get same errors. TargetNone ScannerNone Output FormatNone ModeNone Operating SystemUbuntu VersionVersion: 0.45.0 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 48 replies
-
@Susanta2000 can you delete |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same problem: ❯ trivy k8s --report --debug summary oidc@k8s-235-1
[... 5 minutes go by ...]
2024-09-23T17:26:23-04:00 FATAL Fatal error flag error: report flag error: unable to parse flag: invalid argument "--debug" for "--report" flag: must be one of ["all" "summary"] Using the suggested: Both times I see this job created: @Zecora:~/s/i/k/a/w/o/prod (master) [$!?⇡] ❯ kubectl get job -n trivy-temp
NAME STATUS COMPLETIONS DURATION AGE
node-collector-7c5b64fc7f Running 0/1 11s 11s
@Zecora:~/s/i/k/a/w/o/prod (master) [$!?⇡] ❯ kubectl get job -n trivy-temp
NAME STATUS COMPLETIONS DURATION AGE
node-collector-7c5b64fc7f Running 0/1 15s 15s
@Zecora:~/s/i/k/a/w/o/prod (master) [$!?⇡] ❯ kubectl get job -n trivy-temp
@Zecora:~/s/i/k/a/w/o/prod (master) [$!?⇡] ❯ kubectl logs -n trivy-temp job/node-collector-7c5b64fc7f
{"apiVersion":"v1","kind":"NodeInfo","metadata":{"creationTimestamp":"2024-09-23T21:37:42Z"},"type":"worker","info":{"certificateAuthoritiesFileOwnership":{"values":[]},"certificateAuthoritiesFilePermissions":{"values":[]},"kubeconfigFileExistsOwnership":{"values":[]},"kubeconfigFileExistsPermissions":{"values":[]},"kubeletAnonymousAuthArgumentSet":{"values":[]},"kubeletAuthorizationModeArgumentSet":{"values":[]},"kubeletClientCaFileArgumentSet":{"values":[]},"kubeletConfFileOwnership":{"values":[]},"kubeletConfFilePermissions":{"values":[]},"kubeletConfigYamlConfigurationFileOwnership":{"values":[]},"kubeletConfigYamlConfigurationFilePermission":{"values":[]},"kubeletEventQpsArgumentSet":{"values":[]},"kubeletHostnameOverrideArgumentSet":{"values":["sassaflash.235.tdude.co"]},"kubeletMakeIptablesUtilChainsArgumentSet":{"values":[]},"kubeletOnlyUseStrongCryptographic":{"values":[]},"kubeletProtectKernelDefaultsArgumentSet":{"values":[]},"kubeletReadOnlyPortArgumentSet":{"values":[]},"kubeletRotateCertificatesArgumentSet":{"values":[]},"kubeletRotateKubeletServerCertificateArgumentSet":{"values":[]},"kubeletServiceFileOwnership":{"values":[]},"kubeletServiceFilePermissions":{"values":[]},"kubeletStreamingConnectionIdleTimeoutArgumentSet":{"values":[]},"kubeletTlsCertFileTlsArgumentSet":{"values":[]},"kubeletTlsPrivateKeyFileArgumentSet":{"values":[]}}}% @Zecora:~/s/i/k/a/w/o/prod (master) [$!?⇡] ❯ kubectl get job -n trivy-temp
NAME STATUS COMPLETIONS DURATION AGE
node-collector-7c5b64fc7f Complete 1/1 27s 28s |
Beta Was this translation helpful? Give feedback.
-
Same issue, can't get results... ❯ 2024-11-17T21:51:16+02:00 FATAL Fatal error get k8s artifacts with node info error: running node-collector job: jobs.batch "node-collector-774d8bccc9" already exists |
Beta Was this translation helpful? Give feedback.
-
Same issue on a kind cluster. Intent is to first test this on a KinD cluster running k8s version 1.31.2 before attempting it on my production cluster:
I'm running the following trivy version:
And finally, I'm attempting to run trivy using the following command:
Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
I also ran into this issue due to a
and adding the listed taints to the
THe scan ran through successfully. |
Beta Was this translation helpful? Give feedback.
@Susanta2000 can you delete
trivy-temp
namespace and run againkubectl delete namespace trivy-temp