Skip to content

Instantly share code, notes, and snippets.

@krisnova
Last active April 15, 2020 20:25
Show Gist options
  • Save krisnova/00a9825fc4f31c30f240e0d405cfb765 to your computer and use it in GitHub Desktop.
Save krisnova/00a9825fc4f31c30f240e0d405cfb765 to your computer and use it in GitHub Desktop.
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: falco
namespace: falco
labels:
app: falco
spec:
selector:
matchLabels:
app: falco
template:
metadata:
labels:
app: falco
spec:
tolerations:
- operator: Exists
hostPID: true
hostNetwork: true
containers:
- name: falco-init
image: alpine
imagePullPolicy: Always
securityContext:
privileged: true
lifecycle:
preStop:
exec:
command:
- "nsenter"
- "-t"
- "1"
- "-m"
- "--"
- "/bin/sh"
- "-c"
- |
#!/bin/bash
curl -s https://falco.org/repo/falcosecurity-3672BA8F.asc | apt-key add -
echo "deb https://dl.bintray.com/falcosecurity/deb stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list
apt-get update -y
apt-get -y install linux-headers-$(uname -r)
apt-get install -y falco
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment