-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trivy 0.29.0 produced an error while trying to scan k8s deployment #2349
Comments
@przemolb Thank you for reporting. It is having problem authenticating. Do you mind posting here which kubectl version you are using? And perhaps upgrading it, if it is too behind? Thank you! |
I use |
@przemolb how are you configuring your kubectl? Is it automatically for some cloud provider? (aws, gke, etc?) |
I use aws for this. This is standard configuration - nothing fancy. |
Having the same issue. Trivy version: |
Just ran into this issue on trivy kubectl configured with |
Can someone having this issue help me debug it? I created an EKS cluster, and was able to scan it without any issue. |
Hey @josedonizetti thanks for taking a look at this. EKS cluster (k8s version 1.22) created with the following CloudFormation template
Trivy 0.31.2 installed using Running
Uninstalling that version and installing
works fine. Upgrading the cluster to k8s version 1.23 still has the same issue. When you say
Can you provide more details? How was the cluster created (console/API/CFN?)/cluster version/Trivy version/kubectl version/kubectl source? |
@josedonizetti hello, any update? |
Same issue here. k8s
If it makes a difference, there is no pods in my default namespace but there is in other namespaces.
|
@bbodenmiller not sure if it still an issue or how you progress with it, here are my two cents : Causes of ErrorThe error message indicates that kubectl is trying to use an API version client.authentication.k8s.io/v1alpha1 that is not supported by your cluster. This can be due to a few reasons: You are using an outdated version of kubectl: The API version supported by your kubectl version may not be compatible with the version of your Kubernetes cluster. Resolve this error, you have a few options:
|
Closing issue as nothing to update here. |
Description
Trivy doesn't scan k8s deployment
What did you expect to happen?
A report with vulnerabilities found in a deployment.
What happened instead?
Output of run with
-debug
:Output of
trivy -v
:The text was updated successfully, but these errors were encountered: