-
Notifications
You must be signed in to change notification settings - Fork 281
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
modprobe
in hardened-kubernetes image is unusable due to missing shared libraries
#7444
Comments
We’re copying over modprobe without copying over any of the shared libraries it needs. brandond@dev01:~$ docker run --rm -it docker.io/rancher/hardened-kubernetes:v1.30.6-rke2r1-build20241023 modprobe
modprobe: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory We need to be more careful about copying things out of BCI, they're not statically linked. |
modprobe
in hardened-kubernetes image is unusable due to missing shared libraries
Sorry my finger has a stint on it and it's accidentally closed/changed a few things like milestones on accident this week. |
##Environment Details Infrastructure
Node(s) CPU architecture, OS, and version:
Cluster Configuration:
Config.yaml:
YOUR_REPRODUCED_RESULTS_HERE
Results: $ k logs kube-proxy-ip -n kube-system
$ k logs kube-proxy-ip-1-3-2-3 -n kube-system
$ k logs kube-proxy-ip -n kube-system | grep -i librar
$ kgn
$ k logs kube-proxy-ip -n kube-system
$ sudo lsmod | grep -i ip_vs
$ ls /lib/modules/6.4.0-150600.23.17-default/
$ ls /lib/modules/6.4.0-150600.23.17-default/kernel/
$ k logs pod/kube-proxy-ip -n kube-system
$ k logs pod/kube-proxy-ip -n kube-system | grep -i librar
|
Environmental Info:
RKE2 Version: v1.28.15+rke2r1
Node(s) CPU architecture, OS, and Version: Ubuntu 22.04
Linux ip-172-31-6-165 5.15.0-1028-aws #32-Ubuntu SMP Mon Jan 9 12:28:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
1 Server node
Describe the bug:
trying to run kube-proxy in IPVS mode. However, we see the following warning in the kube-proxy logs:
time="2024-12-18T19:52:07Z" level=warning msg="Running modprobe ip_vs failed with message:
modprobe: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory, error: exit status 127"
Steps To Reproduce:
Setup single node RKE2 cluster with Kubernetes v1.28.15+rke2r1. Set arguments for kube-proxy to run in ipvs.
Once RKE2 starts up, kube-proxy logs have warning for missing libzstd.so.1 library.
Expected behavior:
No warning in the kube-proxy logs for missing libzstd.so.1 library
Actual behavior:
Warning message exists.
Additional context / logs:
The kube-proxy logs the warning but does not crash and stays running.
The text was updated successfully, but these errors were encountered: