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

Issue running on amazon eks #274

Open
zakariais opened this issue Feb 28, 2023 · 7 comments
Open

Issue running on amazon eks #274

zakariais opened this issue Feb 28, 2023 · 7 comments

Comments

@zakariais
Copy link

2023-02-28T13:10:43.064809Z warn OS CA Cert could not be found for agent
[ -f bpf/mb_connect.c ] && make -C bpf load || make -C bpf load-from-obj
make[1]: Entering directory '/app/bpf'
Makefile:69: *** It looks like your system does not have cgroupv2 enabled, or the automatic recognition fails. Please enable cgroupv2, or specify the path of cgroupv2 manually via CGROUP2_PATH parameter.. Stop.
make[1]: Leaving directory '/app/bpf'
make[1]: Entering directory '/app/bpf'
Makefile:69: *** It looks like your system does not have cgroupv2 enabled, or the automatic recognition fails. Please enable cgroupv2, or specify the path of cgroupv2 manually via CGROUP2_PATH parameter.. Stop.
make[1]: Leaving directory '/app/bpf'
make: *** [Makefile:3: load] Error 2
Error: failed to load ebpf programs: unexpected exit code: 2, err: exit status 2

@zakariais
Copy link
Author

The default cgroup on my machines is cgroup1 but there is also cgroup2 installed
How can i point it to use that cgroup?
The machines are amazon linux

@kebe7jun
Copy link
Member

kebe7jun commented Mar 1, 2023

What is your os and kernel version, you may need to change the kernel boot parameters to enable cgroup2.

@zakariais
Copy link
Author

Amazon Linux 2 and 5.10
What are the steps to enable it? Any doc link?

@kebe7jun
Copy link
Member

kebe7jun commented Mar 1, 2023

@zakariais
Copy link
Author

This will require rebooting all of our machines, doesn't look good for current prod instances
Is there any way to get it into existing without rebooting or changing anything except some configs?

@zakariais
Copy link
Author

Also we use eks optimized ami, they currently using cgroup1

@kebe7jun
Copy link
Member

So far it's not working, maybe I can go find a solution...

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

2 participants