future-architect / vuls

Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices
https://vuls.io/
GNU General Public License v3.0
11.01k stars 1.16k forks source link

Make it easy to deploy to kubernetes #727

Open halcyondude opened 6 years ago

halcyondude commented 6 years ago

o/

I am deploying Vuls production, and I'm still learning. In progress work for me is to:

  1. Create pod definitions (and associated bits) to run Vuls in Kubernetes.
  2. Create helm chart to facilitate easily deploying to cluster(s).

When complete (shouldn't be too long) I would like to contribute these back. The helm chart will land at helm/charts, but documentation and example pod configuration would ideally land here.

This issue is created to track this work. Please redirect me to appropriate place if this (github issue) is not the correct place. I'm new to project and community.

Thanks!

knqyf263 commented 6 years ago

@halcyondude Thanks a lot! That's just fine to track your work in this issue. I am looking forward to completing your chart.

hmilkovi commented 5 years ago

@halcyondude Take care that there are two approaches to consider:

  1. Each k8s node self local scan with privileged container
  2. One deployment remote scans other k8s nodes

My personal opinion is that's best to setup the deployment inside kube-system namespace.

Some random thoughts on my side:

Users should be noted to user k8s with docker container runtime as Vuls support only docker container scanner to avoid trivial issues.

For automatic scans k8s CronJob object type would be great.

I really pleased to see this, thanks for your time on implementing charts :)

halcyondude commented 5 years ago

Some other priorities took attention, but would still like to (eventually) revisit this.

The goal would be to run vuls scanning from k8s --> outside cluster to machines/instances. In our case we would want to scan instances in EC2 for example, vs. scanning other k8s pods.

bitsofinfo commented 4 years ago

any word on this?