-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Kubearmor restarts all pods in a Kubernetes cluster after installation. #1935
Comments
I found that the issue is as follows:
|
@thungrac Correct, AppArmor annotations are security annotations, and Kubernetes treats them as immutable. Once a pod is created, these annotations cannot be modified or patched. To apply or modify an AppArmor profile, the pod must be restarted or recreated with the required annotation. This is why restarting the pod is necessary for the AppArmor enforcer to function properly in KubeArmor. |
The side effects are as follows:
Suggested improvements:
|
As someone using a distributed filesystem within kubernetes (rook-ceph) I can say I was NOT happy when this happened. If it's possible when kubearmor kills a pod during this installation process, please have it wait for the replacement to fully spawn before moving on to the next, or at least honor the pod distrubtion budget that may exist to safely rate limit this kind of action. Barring that, please document that this will happen in big red letters somewhere. :) |
Bug Report
General Information
To Reproduce
container.apparmor.security.beta.kubernetes.io
will be restarted.Expected behavior
All pods continue running as usual.
addition info
kubearmor-controller log is:
The text was updated successfully, but these errors were encountered: