Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone daemon installation package without vagrant / kubernetes? #67

Closed
happy-dude opened this issue May 24, 2022 · 6 comments
Closed

Comments

@happy-dude
Copy link

happy-dude commented May 24, 2022

Hey team,

After reading the announcement of the project, I've been eager and excited to play around and compare how the tool compares to others like Falco.

I was able to follow the instructions and get an environment running within a Vagrant image and monitoring the sample kuburnetes container images.

At a glance (might be wrong here), it seems that the Makefile makes some assumptions about being installed in a container and not the host itself.

Are there any plans to offer an installation package (deb, rpm) that allows for a stand-alone installation and configuration of the daemon?

@willfindlay
Copy link
Contributor

willfindlay commented May 26, 2022

Hey team,

Howdy! Thanks for your interest in the project :)

After reading the announcement of the project, I've been eager and excited to play around and compare how the tool compares to others like Falco.

I was able to follow the instructions and get an environment running within a Vagrant image and monitoring the sample kuburnetes container images.

At a glance (might be wrong here), it seems that the Makefile makes some assumptions about being installed in a container and not the host itself.

Nope, you should be able to build a standalone binary as follows: make tools-install && LD_LIBRARY_PATH=$(realpath ./lib) make. Then you could just copy the tetragon binary to your desired location (i.e. somewhere in your PATH). You can pass in a CRD to a standalone tetragon using the --config-file command line flag.

Are there any plans to offer an installation package (deb, rpm) that allows for a stand-alone installation and configuration of the daemon?

I don't know of any plans per se, but I'm sure a PR would be welcome if you want to make a package for your favourite distro.

@pathtofile
Copy link

pathtofile commented Jun 5, 2022

Hey @happy-dude, I had a similar requiremt for testing purposes - Wanted to see how Tetragon compares to other eBPF security tools on my test machines that don't have Kubernetues clusters running on them.

Helpfully @tixxdz on the Slack shared this gist to run things inside a docker container, provided the machine you run Docker on meets the requirements

# 1. Run Tetragon in a detached privliged Docker container, mounting required folders
docker run --name tetragon \
--rm -it -d --pid=host --cgroupns=host \
--privileged \
-v /sys/kernel/btf/vmlinux:/var/lib/tetragon/btf \
quay.io/cilium/tetragon:v0.8.0 \
bash -c "/usr/bin/tetragon"

#2. Get events:
docker exec -it tetragon \
bash -c "/usr/bin/tetra getevents -o compact"

@willfindlay , while I understand this isn't a 'proper' way to deploy Tetragon, having this example in the repo (under "local testing" or something) would be extremely useful for people wanting to try and compare Tetragon without needing a full k8s environment

@willfindlay
Copy link
Contributor

having this example in the repo (under "local testing" or something) would be extremely useful

Agreed, would be happy to take a PR. :)

@tixxdz
Copy link
Member

tixxdz commented Sep 6, 2022

@pathtofile @happy-dude #384 this should do it for now right? for pure deb or rpm packages it is just matter of priorities we will try to do it, or maybe someone will contribute it. Thank you!

@kkourt
Copy link
Contributor

kkourt commented Feb 24, 2023

We do have a systemd installation now, so closing this.

@kkourt kkourt closed this as completed Feb 24, 2023
@pathtofile
Copy link

Very, very, late, but thanks @tixxdz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants