VM/Bare-Metal Deployment
This recipe explains how to use KubeArmor directly on a VM/Bare-Metal machine, and we tested the following steps on Ubuntu hosts.
The recipe installs kubearmor
as systemd process and karmor
cli tool to manage policies and show alerts/telemetry.
Download and Install KubeArmor
Download the latest release or KubeArmor.
Install KubeArmor (VER is the kubearmor release version)
Note that the above command doesn't installs the recommended packages, as we ship object files along with the package file. In case you don't have BTF, consider removing
--no-install-recommends
flag.
Start KubeArmor
Check the status of KubeArmor using sudo systemctl status kubearmor
or use sudo journalctl -u kubearmor -f
to continuously monitor kubearmor logs.
Apply sample policy
Following policy is to deny execution of sleep
binary on the host:
Save the above policy to hostpolicy.yaml
and apply:
Now if you run sleep
command, the process would be denied execution.
Note that
sleep
may not be blocked if you run it in the same terminal where you apply the above policy. In that case, please open a new terminal and runsleep
again to see if the command is blocked.
Get Alerts for policies and telemetry
Last updated