falco wip

This commit is contained in:
marcel-dempers 2022-06-07 08:41:23 +10:00
parent 0d637c1046
commit e5db66902b
3 changed files with 5041 additions and 0 deletions

View File

@ -0,0 +1,67 @@
https://falco.org/
* Learning environment
https://falco.org/docs/getting-started/third-party/learning/
* Create a cluster
```
cd kubernetes/falco
kind create cluster --name falco --image kindest/node:v1.23.5 --config kind.yaml
```
* Install helm
```
curl -LO https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz
tar -C /tmp/ -zxvf helm-v3.7.2-linux-amd64.tar.gz
rm helm-v3.7.2-linux-amd64.tar.gz
mv /tmp/linux-amd64/helm /usr/local/bin/helm
chmod +x /usr/local/bin/helm
```
Add falcosecurity repository
Before installing the chart, add the falcosecurity charts repository:
```
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm repo update
```
Let's find what versions of vault are available:
```
helm search repo falcosecurity --versions
```
I will be using the below version in this demo
```
NAME CHART VERSION APP VERSION DESCRIPTION
falcosecurity/falco 1.18.5 0.31.1 Falco
```
* Get YAML template
Let's grab the manifests:
```
mkdir manifests
helm template falcosecurity falcosecurity/falco \
--namespace falco \
--version 1.18.5 \
> ./manifests/falco.yaml
```
* Daemonset
https://github.com/falcosecurity/evolution/tree/master/deploy/kubernetes/falco/templates
```
kubectl create ns falco
kubectl -n falco apply -f ./kubernetes/falco/templates/
```

View File

@ -0,0 +1,11 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
# allow Falco to use devices provided by the kernel module
- hostPath: /dev
containerPath: /dev
# allow Falco to use the Docker unix socket
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock

File diff suppressed because it is too large Load Diff