-
Notifications
You must be signed in to change notification settings - Fork 716
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
Cannot deploy Kubernetes 1.8.0 with Kubeadm 1.8.0 on Raspberry Pi #479
Comments
Have you tried to disable swap or add parameter to kubelet ? |
Hey kad, thanks for the tip - oddly preflight didn't seem to catch it, but it worked! |
Preflight actually produced warning about that. |
@kad, yes you're right, sorry. Any reason why it didn't fail like it used to? Is that a new feature? |
Idea behind warning in preflight check is such that some people can run kubelet while swap is still enabled, but that require adding extra flag in kubelet systemd drop-in. |
this is my situation Unfortunately, an error has occurred: This error is likely caused by:
If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
Apr 02 03:59:43 k8s-master kubelet[12180]: E0402 03:59:43.623741 12180 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://192.168.1.6:6443/api/v1/pods?fieldSelector=spec.nodeName%3Dk8s-master&limit=500&resourceVersion=0: dial tcp 192.168.1.6:6443: getsockopt: connection refused journalctl -xeu kubelet what is the problem? |
@xinjt
firewalld-cmd --permanent --zone=public --add-port=6443
...
firewalld-cmd --reload
grep -i Cgroup /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
docker info | grep Cgroup
setenforce 0
sysctl -n net.bridge.bridge-nf-call-iptables
1
systemctl daemon-reload
systcl --system
export KUBECONFIG=/etc/kubernetes/admin.conf [¹]: Note that selinux should be disabled only for test purposes and should be obviously properly configured for production service. |
@xinjt please open separate issue for your case. it is different from this one. |
@joedborg Has this problem been solved? I encountered the same problem |
Versions
kubeadm version (use
kubeadm version
):1.8.0
Environment:
kubectl version
):1.8.0
Debian Jessie
uname -a
):4.9.35-v7+
What happened?
Kubeadm cannot bring up master.
What you expected to happen?
Kubeadm brings up a master instance.
How to reproduce it (as minimally and precisely as possible)?
sudo kubeadm init
on a Raspberry Pi with Debian Jessie.Anything else we need to know?
The text was updated successfully, but these errors were encountered: