-
Notifications
You must be signed in to change notification settings - Fork 912
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
Add k8s event generator resources #1088
Conversation
Add a Daemonset yaml that allows running the falco event generator on syscalls. It will run on any non-master node. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
Add a deployment yaml that allows running the event generator in a k8s cluster: - Change the event generator to create/delete objects in a namespace "falco-eg-sandbox" instead of "falco-event-generator". That way you separate the generator from the resources it modifies (mostly, the exception being the rolebinding). - Create a serviceaccount, clusterrole, and rolebinding that allows the event generator to create/list/delete objects in the falco-eg-sandbox namespace. The list of permissions is fairly broad mostly so the event generator can delete all resources without explicitly naming them. The binding does limit permissions to the falco-eg-sandbox namespace, though. A one-line way to run this would be: kubectl create namespace falco-event-generator && \ kubectl create namespace falco-eg-sandbox && \ kubectl apply -f event-generator-role-rolebinding-serviceaccount.yaml && \ kubectl apply -f event-generator-k8saudit-deployment.yaml I haven't actually pushed a new docker image to replace the current event generator yet--the deployment yaml refers to a placeholder falcosecurity/falco-event-generator:eg-sandbox image. Once the review is done I'll rebase this to change the image to latest before merging. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
94945dc
to
cba422e
Compare
I also updated the docs to reflect these changes: falcosecurity/falco-website#163 |
/milestone 0.21.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @mstemm Thank you so much ! Approved
LGTM label has been added. Git tree hash: 59f6ee9bf4edabecc6fdbd9fdd740fb461ac9e21
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fntlnz, kris-nova The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I had a bug in #1088 where the image name for the event generator was pointing to a temporary tag instead of latest. This switches the image name back to latest. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
I had a bug in #1088 where the image name for the event generator was pointing to a temporary tag instead of latest. This switches the image name back to latest. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area integrations
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: