-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
containerd+driver none returning error #13821
Comments
What does vagrant@ubuntu2004:~$ which iptables
/usr/sbin/iptables
vagrant@ubuntu2004:~$ iptables --version
iptables v1.8.4 (legacy)
vagrant@ubuntu2004:~$ readlink -f /usr/sbin/iptables
/usr/sbin/xtables-legacy-multi
vagrant@ubuntu2004:~$ dpkg -S /usr/sbin/xtables-legacy-multi
iptables: /usr/sbin/xtables-legacy-multi
vagrant@ubuntu2004:~$ apt list iptables
Listing... Done
iptables/focal,now 1.8.4-3ubuntu2 amd64 [installed]
iptables/focal 1.8.4-3ubuntu2 i386 BTW. As part of the Kubernets requirements, you also need to install "conntrack". |
Here is the configuration that I was testing with: Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.provider "libvirt" do |lv|
lv.cpus = 2
lv.memory = 2048
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y containerd conntrack
ln -s /bin/false /usr/local/bin/docker
# cri-tools
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.23.0/crictl-v1.23.0-linux-amd64.tar.gz
tar -C /usr/local/bin -xzf crictl-v1.23.0-linux-amd64.tar.gz
# cni-plugins
wget https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-amd64-v1.1.1.tgz
mkdir -p /opt/cni /opt/cni/bin
chmod 755 /opt/cni /opt/cni/bin
tar -C /opt/cni/bin -xzf cni-plugins-linux-amd64-v1.1.1.tgz
# minikube
wget https://github.com/kubernetes/minikube/releases/download/v1.25.2/minikube_1.25.2-0_amd64.deb
dpkg -i minikube_1.25.2-0_amd64.deb
SHELL
end
|
About iptables:
@afbjorklund can you try with |
It seems like the vagrant box for debian11 does not include "iptables".
And regular users on Debian, they do not have vagrant@debian11:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games I think minikube runs it with "sudo" anyway, so should look in root PATH. vagrant@debian11:~$ iptables
-bash: iptables: command not found
vagrant@debian11:~$ sudo iptables
iptables v1.8.7 (nf_tables): no command specified
Try `iptables -h' or 'iptables --help' for more information.
|
Update: besides being installed /usr/sbin doesn't seem to be on default path of debian. I exported the path manually.. and the logs change to complain about docker:
Now I see what you mentioned on Slack... |
The "docker" issue was known, unfortunately.
|
After adding this fake docker command and installing
|
When you use the none driver, then you are reponsible for installing the Kubernetes requirements such as CRI and CNI.
There are some shell script examples above, the k8s.io documentation upstream on these installations is not very great. Minikube will set up the configuration, but not install the programs... For the supported OS, they both come pre-installed with the system. |
The bug report itself is invalid, since Minikube should check that it is available to root, either by hardcoding "/usr/sbin/iptables" or by running "sudo iptables". |
@afbjorklund you are right. Problem is the same as the ones you mentioned using docker. closing here. Thanks a lot for the help! |
also ran into the problem of needing to stub docker to /bin/false :( |
What Happened?
Also worth noticing iptables is installed and on PATH.
Logs:
Attach the log file
Operating System
Debian
Driver
No response
The text was updated successfully, but these errors were encountered: