Cluster information:
Kubernetes version: 1.28
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: ubuntu 22.04 LTS
CNI and version: flannel v0.24.4
CRI and version: containerd v1.6.28
Issue
Hello, I am failing to initialize a bare-metal kubeadm deployment in proxmox ve. I have an LXC container running Nginx Proxy Manager as a front-end for my kubeadm created api servers/control planes. During initialization I get the following error: "
Unfortunately, an error has occurred:
timed out waiting for the condition
This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- ‘systemctl status kubelet’
- ‘journalctl -xeu kubelet’
Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI.
Here is one example how you may list all running Kubernetes containers by using crictl:
- ‘crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock ps -a | grep kube | grep -v pause’
Once you have found the failing container, you can inspect its logs with:
- ‘crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock logs CONTAINERID’
error execution phase wait-control-plane: couldn’t initialize a Kubernetes cluster
To see the stack trace of this error execute with --v=5 or higher"
But when running sudo journalctl -xeu kubelet
it generates the following messages/errors: “https://argocd-kubeadm.kmartinez.net:443/api/v1/namespaces/default/events”: tls: failed to verify certificate: x509: certificate signed by unknown authority’(may retry after sleeping)"
I have spent hours configuring and ensuring systemd is being used and all lookgs good but I can’t pinpoint where this x.509 error is coming from.\
Any help would be greatly appreciated.