← 输入框|github.com|刷新
Skip to content

Is it possible to select the node where the Trivy scan will be executed ? #3046

Closed

Description

@HeleneDenis

Your Question

To avoid pulling the image from an external source and to use the local registry on the node, I would like to be able to select the node where the scan will be executed.
I haven't found a way to add a nodeSelector to the scan, is there a solution to achieve this?

Activity

  1. J12934 commented on May 20, 2025

    @J12934
    Member

    Hi, yes that is generally possible.
    Not on a per scan basis, but you can configure a nodeSelector when installing the ScanType.

    Search for scanner.nodeSelector, on the trivy scantype docs: https://www.securecodebox.io/docs/scanners/trivy#values

    If you need the ability to specify it scan basis this would need to be added to the scan custom resource.
    Thats something that we would want to add but I dn't think anybody from the core team would have time to develop this in the next time, but pull requests to add it would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions