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

Cilium CNI plugin fails with missing kernel module(s) #17780

Open
varjoinen opened this issue Dec 13, 2023 · 8 comments
Open

Cilium CNI plugin fails with missing kernel module(s) #17780

varjoinen opened this issue Dec 13, 2023 · 8 comments
Labels
co/docker-driver Issues related to kubernetes in container os/macos

Comments

@varjoinen
Copy link

What Happened?

Started minikube with:

minikube start --cni=cilium

The Kubernetes cluster starts, but Cilium will stay in CrashLoopBackOffand logging:

...
level=warning msg="BPF system config check: NOT OK." error="CONFIG_NET_SCH_INGRESS kernel parameter or module is required (needed for: Essential eBPF infrastructure)" subsys=linux-datapath
...
level=warning msg="+ tc qdisc replace dev cilium_vxlan clsact" subsys=datapath-loader
level=warning msg="RTNETLINK answers: Operation not supported" subsys=datapath-loader
...
level=warning msg="We have an error talking to the kernel" subsys=datapath-loader
...
level=fatal msg="Error while creating daemon" error="error while initializing daemon: failed while reinitializing datapath: exit status 1" subsys=daemon

There has been similar issue reported earlier at Cilium side and missing kernel modules have been pointed out.

One can see that related kernel modules are missing from the minikube container:

> docker exec -it minikube /bin/sh    
# zcat /proc/config.gz | grep CONFIG_NET_SCH_INGRESS
# zcat /proc/config.gz | grep CONFIG_NET_CLS_ACT    
# 

The same issue can be seen if minikube is started without CNI plugin and Cilium Helm chart is used to install it.

Attach the log file

log.txt

Operating System

macOS (Default)

Driver

Docker

@maksymilian-mulawa-form3
Copy link

maksymilian-mulawa-form3 commented Dec 19, 2023

My guess is, you are using 4.26.0-1 version of Docker Desktop on macOS, try to downgrade it to 4.25.2 using following steps.

  1. Download your desired version from the Release Notes.
  2. Open the download, drag "Docker" to "Applications"
  3. Chose to "Replace" the existing installation
  4. Run Docker desktop

It seems that in 4.26.* some major configuration changes were applied to docker-for-mac VM kernel, e.g. hugetlbfs filesystem not available

@afbjorklund
Copy link
Collaborator

The new Docker VM also broke both vfat and 9p filesystem support, so this all sounds like more of the same...

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container os/macos labels Dec 19, 2023
@dgageot
Copy link

dgageot commented Dec 21, 2023

Sorry all for this issue. This will be fixed in 4.27.0. In the meantime, yes, you can use 4.25.2. Sorry again.

@RazaGR
Copy link

RazaGR commented Dec 24, 2023

I confirm downgrading docker version to 4.25.2 fixed the issues for me.

@El-Coder
Copy link

Also ran into same issue 4.25.2 fixed it for me

@maksymilian-mulawa-form3

This issue was resolved in Docker Desktop 4.27.0.

@ofcRS
Copy link

ofcRS commented Feb 26, 2024

This issue was resolved in Docker Desktop 4.27.0.

I'm still experiencing the issue at 4.27 macOS. However, when I downgrade to version 4.25.x, the problem is resolved.

@dgageot
Copy link

dgageot commented Feb 26, 2024

@ofcRS do you have exactly the same error message or is it a bit different?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container os/macos
Projects
None yet
Development

No branches or pull requests

7 participants