-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Kubeadm fails - kubelet fails to find /etc/kubernetes/bootstrap-kubelet.conf #3769
Comments
Same Problem, at step Upgrade first master.
|
@gongzili456 can you share the output of I suspect kubelet is failing to startup because it can't find the |
yes, the kubelet is failing to startup. how to resolve it? kubeadm join:
kubelet status:
|
I resolved it. How to update k8s version: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-13/ |
@lianghuiyuan Still having this issue on v1.13.0... I'm setting up an entirely new cluster or trying to go from a kubespray non kubeadm to kubeadm config. |
I got same broblem , when i upgrade cluster from 1.8.10 to v1.12.3 , setup new v1.12.3 is very . |
Anyone else having any luck with this? I see non kubeadm deploys have been completely removed from new releases as well... 😞 |
Any thoughts @riverzhang ? |
Moving all the content from |
我也遇到此问题了,我尝试使用
result
我查看了
1月 16 08:52:12 k8s-m1 kubelet[979]: F0116 08:52:12.873068 979 server.go:244]unable to load client CA file /etc/kubernetes/pki/ca.crt: o 我尝试修改 success
但是,我本地虚拟机执行是可以的。这是我在服务器离线部署遇到的问题。 Forgive me for not be able to use English description |
@zhangmz0223 same problem(同样的问题,但是我搞不懂) |
@Mroch-Cn 这个只能修改具体的yaml配置。它这里的做法是写死了。 你可以打印下步骤信息, 里面有一个yaml配置文件在执行 kubeadm init 的时候是写死了 /etc/kubernetes/ssl ,我的做法是 修改成 /etc/kubernetes/pki 也可以,全文检索下。 刚查找了下,大概是 roles/kubespray-default/defaults/main.yaml 大概在 93行。 # This is where all the cert scripts and certs will be located
kube_cert_dir: "{{ kube_config_dir }}/ssl" 我修改过后是可以的。 |
哈哈哈谢谢回复,我查了journalctl里面的信息,发现是虽然我使用了swap off -a这个命令,但是在node加入节点时swap并不是被关掉的,swap会影响kubelet’的启动。Fdisk干掉他们 然后就解决我的问题了。。还是感谢
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: zhangmz0223 <[email protected]>
Sent: Thursday, February 14, 2019 3:26:26 PM
To: kubernetes-sigs/kubespray
Cc: Mroch-Cn; Mention
Subject: Re: [kubernetes-sigs/kubespray] Kubeadm fails - kubelet fails to find /etc/kubernetes/bootstrap-kubelet.conf (#3769)
@Mroch-Cn<https://github.com/Mroch-Cn> 这个只能修改具体的yaml配置。它这里的做法是写死了。
你可以打印下步骤信息, 里面有一个yaml配置文件在执行 kubeadm init 的时候是写死了 /etc/kubernetes/ssl ,我的做法是 修改成 /etc/kubernetes/pki
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3769 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AOMZTmKmm-h1QztB9kwJ9jkh9WX4fYYZks5vNQ-igaJpZM4Y1EO2>.
|
I just ran into this issue and saw that I been closed but I cannot clearly understand what the fix is and if there is any branch that carry a fix. Can someone please point me to a fix. I believe I started seeing this after I updated my kernel from 3.10 to 4.20. I needed to do that in order to take advantage of some features provided by rook-ceph on my baremetal cluster. |
So, I will try not to be longwinded on this one, my hope is that this save someone some pain. I had everything working fine on my on premises 7 node cluster. I realized some rook features like filesystem could not be used because of my kernel version. My hosts runs on Centos 7 that comes with kernel version 3.10. So I decided to tear everything down, update my kernel and got version 4.20 on all my host. Then I realized I ran into this 3986 issue. Apparently there was a bug on everything 2.8.2 and below causing it to fail on systems with Kernel version >= 4.19. That bug supposedly came from upstream kubernetes. It was fixed on version 1.13.0 and also accommodated here in kubespray but on the master branch only. I traced the fix down to the master branch, read more about it 3986. Long story short even after an upgrade to use the master branch, and I know I am leaving on the edge, I still ran into this 4008. It turns out there are some significant changes on the master branch that also require a complete change of the inventory folder. The easiest way to do that is to copy the sample folder and then make the necessary changes to your host.ini or any additional changes that are specific to your environment. |
Thanks @zhangmz0223 !! "{{ kube_config_dir }}/ssl -> {{ kube_config_dir }}/pki" this one worked for me. |
Watching logs
Found solution in this SO answer |
As the document said here The kubelet drop-in file for systemd:
|
kubeadm alpha kubeconfig user --org system:nodes --client-name system:node:$(hostname) >/etc/kubernetes/kubelet.conf From here: kubernetes/kubernetes#84252 |
Hello, However , when I am trying to use it now I see this error I am not sure what should be in that config file. |
This is basically related to cluster certificates only. Steps I followed to solve the issue: take backup of /etc/kubernetes/* kubeadm alpha certs check-expiration systemctl restart docker If the kubelet certs are not renewed automatically, cd /etc/kubernetes/ systemctl restart kubelet |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Environment:
Cloud provider or hardware configuration: None, 4 vagrant vms.
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
):Kubespray version (commit) (
git rev-parse --short HEAD
):02169e8
Network plugin used:
Calico
Copy of your inventory file:
Kubespray config:
Command used to invoke ansible:
Output of ansible run:
Anything else do we need to know:
Kubespray is successful if I disable kubeadm... any thoughts?
The text was updated successfully, but these errors were encountered: