-
Notifications
You must be signed in to change notification settings - Fork 43
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
Removing privileged flag on the node-agent Pod #306
Conversation
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
PR Analysis
PR Feedback
How to use
|
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
PR Type:
Refactoring
PR Description:
This PR removes the
privileged: true
flag from the node-agent pod and adds specific capabilities to the security context of the pod. It also adds an annotation to allow the node-agent to run on kernels with AppArmor. The changes are based on similar modifications in the Inspektor Gadget project and have been tested on Ubuntu (minikube) and GCP with Linux 5.15.PR Main Files Walkthrough:
files:
charts/kubescape-operator/templates/node-agent/daemonset.yaml
: Removed theprivileged: true
flag from the security context of the node-agent pod and added specific capabilities. Also added an annotation to allow the node-agent to run on kernels with AppArmor.charts/kubescape-operator/values.yaml
: No significant changes, just a minor formatting adjustment.User Description:
Overview
As per popular request I am removing the
privileged: true
flag on the node-agent.It is based on this PR and this commit in inspektor gadget.
It was tested on Ubuntu (minikube) and GCP with Linux 5.15