Skip to content
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

Operator to remove image duplicates before scheduling a scan job #2268

Open
kchestnov opened this issue Sep 24, 2024 · 1 comment
Open

Operator to remove image duplicates before scheduling a scan job #2268

kchestnov opened this issue Sep 24, 2024 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kchestnov
Copy link

Current behavior of operator is to read target pod specs and for each container inside the pod a new container is created to scan target container image.

Consider the following situation:

  • Target pod has multiple containers sharing similar images , e.g. cilium
  • Operator creates a pod with 10 containers each of them runs the same command and creates same report.
  • There is an option to overcome this situation in case of initContainers, but in a more generic case it would be nice to use a set instead of list of images

This behavior, combined with #2267 might explode resources required to scan a pod, e.g. by setting requests 200M and limits 2G (to include all possibilities of images in a cluster) you'll schedule a pod with 2G request and 20G limit which might OOM the whole node.

@kchestnov kchestnov added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 24, 2024
Copy link

This issue is stale because it has been labeled with inactivity.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and will be auto-closed. label Nov 24, 2024
@afdesk afdesk removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and will be auto-closed. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants