-
Notifications
You must be signed in to change notification settings - Fork 706
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
improve kubeadm preflight message for bridge-nf-call-iptables #312
Comments
I had this issue as well, if you want a quick fix, provision your boxes with the following command:
Basically you need to set your ip tables in CentOS (and other redhat family OSs I assume?) |
This is documented here: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#limitations Having kubeadm deal with these OS specifics would certainly be interesting but might increase the scope of the tool too much right now. |
@gtirloni. Many thanks for pointing this out. |
@fabriziopandini Feel free to improve the preflight checks |
Now the documentation describes this case as well. |
Thanks! |
I was installing kubeadm on virtualbox vm (centos7). (install instructions: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ )
unfortunately, it didnt work in my case. It gave 'no such file or directory'. |
@amit-handa which Linux distribution are you running? EDIT: Never mind, just noticed it's CentOS 7. I spin up a Vagrant box here and can reproduce that. |
To make it persistent it is better to change the sysctl configuration.
|
In case the link isn't available in the future, it was a matter of enabling the bridge-netfilter with:
|
In my case: What fixed this issue was setting the contents of
run: BINGO! A better solution is to override the values in the |
Adding some context here for our archlinux friends 😸 and to help with search if you see this error with
and you are hitting the following netfilter bridge error:
i was able to check in the
and then followed the suggestion above to mutate the
and pasted # Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
net.ipv4.ip_forward = 1 and there you go 😄 |
Curious! |
Is this a BUG REPORT or FEATURE REQUEST?
A request for improvement of documentation/UX experience
Versions
kubeadm version (use
kubeadm version
):kubeadm version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.5", GitCommit:"490c6f13df1cb6612e0993c4c14f2ff90f8cdbf3", GitTreeState:"clean", BuildDate:"2017-06-14T20:03:38Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
Environment:
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.5", GitCommit:"490c6f13df1cb6612e0993c4c14f2ff90f8cdbf3", GitTreeState:"clean", BuildDate:"2017-06-14T20:15:53Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Cloud provider or hardware configuration:
VirtualBox VM with 2GB RAM
OS (e.g. from /etc/os-release):
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Kernel (e.g.
uname -a
):Linux localhost.localdomain 3.10.0-514.21.1.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Others:
Environment created using vagrant/VirtualBox and with following Vagrantfile:
What happened?
kubeadm init
preflight fails with following output:What you expected to happen?
kubeadm init
preflight to provide a more "user friendly" message that helps users to identify fix the problem; additionally, it could be useful to move some point from https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#limitations to https://kubernetes.io/docs/setup/independent/install-kubeadm/How to reproduce it (as minimally and precisely as possible)?
Use Vagrant/VirtualBox and the vagrant file provided above
Anything else we need to know?
link to lprefligh check in code base
https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/preflight/checks.go#L502
problem detected investigating #308
The text was updated successfully, but these errors were encountered: