root@luckyk8smaster:~# kubectl get all -n kube-system
The connection to the server lb.luckytomato.local:6443 was refused - did you specify the right host or port?
Relevant log output
root@luckyk8smaster:~# systemctl status kubelet.service
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Mon 2022-06-20 13:06:51 UTC; 13min ago
Docs: http://kubernetes.io/docs/
Main PID: 12598 (kubelet)
Tasks: 18 (limit: 9830)
Memory: 54.4M
CGroup: /system.slice/kubelet.service
└─12598 /usr/local/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=syste>
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.051554 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.151652 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.251840 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.352049 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: I0620 13:20:05.370604 12598 scope.go:111] [topologymanager] RemoveContainer - Container ID: a157f709c052ccc78f188b480974a7009703e18310d209d910a72971d363bdde
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.371499 12598 pod_workers.go:191] Error syncing pod 3f26ae69fb116f334ef4de5b9a5b849b ("kube-apiserver-luckyk8smaster_kube-system(3f26ae69fb116f3>
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.452145 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.552286 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.652478 12598 kubelet.go:2263] node "luckyk8smaster" not found
Jun 20 13:20:05 luckyk8smaster kubelet[12598]: E0620 13:20:05.752680 12598 kubelet.go:2263] node "luckyk8smaster" not found
What is version of KubeKey has the issue?
2.2.0
What is your os environment?
Ubuntu 20.04
KubeKey config file
A clear and concise description of what happend.
装是装成功了,但是我尝试开启audit webhook功能失败了,试了好久。 kube-apiserver.yaml:
audit-policy.yaml:
audit-webhook-kubeconfig:
修改为上述的配置后,我尝试使用sudo systemctl daemon-reload && systemctl restart kubelet.service,然后就疯狂报错
Relevant log output
Additional information
暂无