Try Falcosidekick on Kubernetes
0. Requirements
0.1 Environment
This environment requires of a Kubernetes environment of at least 1 node.
1. Deploying Falcosidekick
These are the main steps to deploy Falcosidekick on Kubernetes using Helm. Follow them and you should be able to use Falcosidekick in a matter of minutes.
1.1 Install kernel headers
Run the following command to install the kernel headers on every Kubernetes node:
This step might not even be necessary if the specific driver for the Linux kernel in your Kubernetes cluster is prebuilt and offered by Falco.
Otherwise, the the presence of the kernel headers will allow the installer to build the Falco driver for you.
1.2 Add Falco chart repository
Run the following command to add the falcosecurity
charts repository:
1.3 Deploy Falco including Falcosidekick
Run the following command to deploy Falco, Falcosidekick and Falcosidekick-UI:
In case Falco had been already deployed using this method, use
upgrade
instead ofinstall
.
1.4 Verify the Falco deployment
Verify that Falcosidekick and Falcosidekick-UI are running correctly using
the kubectl
command:
Wait until all the pods are ready:
Run the following command to look at Falcosidekick logs.
The output should be similar to the following:
2. Trying Falcosidekick in action
2.1 Generate a suspicious event
Run the following command to simulate a suspicious event:
Check the logs again:
The output should be similar to the following:
2.2 Access the Falcosidekick UI Dashboard
To access the Falcosidekick UI, create a port forward to expose the service:
There must be already a few events. Click on them to see the events detail.
2.3 Event Generator
It is better to explore the Falcosidekick UI with more events.
Run the following command to use event-generator to generate a variety of suspect actions that are detected by Falco rulesets.
Alternatively, if you can run Docker containers on the Kubernetes node:
At this point, you can explore Falcosidekick UI. Notice the different priorities and tags.
Congratulations, you finished this scenario!
You should be able to install Falcosidekcik in any Kubernetes cluster and watch for suspicious behavior.
Click on Try Falco and try out the next scenario.
Was this page helpful?
Let us know! You feedback will help us to improve the content and to stay in touch with our users.
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.