Skip to content
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

安装k8s1.17时,worker节点无法启动kubelt #984

Closed
DomineCore opened this issue May 10, 2022 · 4 comments
Closed

安装k8s1.17时,worker节点无法启动kubelt #984

DomineCore opened this issue May 10, 2022 · 4 comments

Comments

@DomineCore
Copy link

DomineCore commented May 10, 2022

No description provided.

@zhangguanzhang
Copy link
Collaborator

systemctl status kubelet
journalctl -xe --no-pager -u kubelet

麻烦贴下日志

@DomineCore
Copy link
Author

DomineCore commented May 10, 2022

● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: inactive (dead) (Result: exit-code) since Tue 2022-05-10 10:27:41 CST; 43min ago
     Docs: http://kubernetes.io/docs/
 Main PID: 7522 (code=exited, status=255)

May 10 10:27:41 VM-16-6-centos systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
May 10 10:27:41 VM-16-6-centos systemd[1]: Unit kubelet.service entered failed state.
May 10 10:27:41 VM-16-6-centos systemd[1]: kubelet.service failed.
May 10 10:27:41 VM-16-6-centos systemd[1]: Stopped kubelet: The Kubernetes Node Agent.

@DomineCore
Copy link
Author

DomineCore commented May 10, 2022

May 10 10:27:41 VM-16-6-centos kubelet-pre-start.sh[7511]: net.ipv4.ip_forward = 1
May 10 10:27:41 VM-16-6-centos kubelet-pre-start.sh[7511]: setenforce: SELinux is disabled
May 10 10:27:41 VM-16-6-centos kubelet[7522]: F0510 10:27:41.198296    7522 server.go:198] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to decode: v1beta1.KubeletConfiguration.CgroupsPerQOS: CgroupDriver: ReadString: expects " or n, but found 1, error found in #10 byte of ...|pDriver":1,"cgroupsP|..., bigger context ...|s","cacheUnauthorizedTTL":"30s"}},"cgroupDriver":1,"cgroupsPerQOS":true,"clusterDNS":["10.96.0.10"],|...
May 10 10:27:41 VM-16-6-centos systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
May 10 10:27:41 VM-16-6-centos systemd[1]: Unit kubelet.service entered failed state.
May 10 10:27:41 VM-16-6-centos systemd[1]: kubelet.service failed.
May 10 10:27:41 VM-16-6-centos systemd[1]: Stopped kubelet: The Kubernetes Node Agent.
-- Subject: Unit kubelet.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit kubelet.service has finished shutting down.

@zhangguanzhang
Copy link
Collaborator

CgroupDriver: ReadString: expects " or

配置文件 /var/lib/kubelet/config.yaml 里这个配置段看看

@fanux fanux closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants