Trivy Kubernetes Scan Error #5639
Unanswered
Susanta2000
asked this question in
Q&A
Replies: 2 comments 16 replies
-
@Susanta2000 can you delete |
Beta Was this translation helpful? Give feedback.
15 replies
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi there, I am doing trivy compliance scan in an EKS cluster. I am getting the following error for multiple times.
Command: trivy k8s cluster --compliance=k8s-nsa --report summary
Error: 2023-11-23T15:34:59.435+0530 FATAL get k8s artifacts with node info error: running node-collector job: runner received timeout
When I ran this by increasing timeout, also get another error.
Command: trivy k8s cluster --compliance=k8s-nsa --report summary --timeout 15m
Error: 2023-11-23T15:35:37.341+0530 FATAL get k8s artifacts with node info error: running node-collector job: jobs.batch "node-collector-5bb7b6797b" already exists.
I was trying same things in another account's EKS cluster, but get same errors.
Can anyone help me out?
Target
None
Scanner
None
Output Format
None
Mode
None
Operating System
Ubuntu
Version
Beta Was this translation helpful? Give feedback.
All reactions