Closed VariableDeclared closed 6 months ago
Also getting context deadline exceeded on a VM with 8GiB RAM, 100G disk, 4 vCPUs, with ubuntu user on two different VMs:
ubuntu@k8s-test:~$ sudo k8s bootstrap
Bootstrapping the cluster. This may take a few seconds, please wait.
Error: Failed to bootstrap the cluster.
The error was: failed to bootstrap new cluster using POST /k8sd/cluster: failed to bootstrap new cluster: Post "http://control.socket/cluster/control": context deadline exceeded
Removing lxc constraint
Hey Peter,
Thanks for raising this. The VM specs should be fine. You could try to extend the timeout
sudo k8s bootstrap --timeout 10m
but I think the problem is on our side.
Could you add the output of
journalctl -f --lines 2000
(We are working on an inspect script this pulse which automates the collection of debug info)
hello @bschimke95 ! indeed after using the 10m timeout, bootstrap now passed on one of the nodes. Is there an NVMe requirement on the bootstrap? These VMs are spinner based
Hey Peter,
Not in particular. Also, the suggestion that I provided might just worked by luck. We see this issue as well in #321 and #277. This basically happens because of a internal timeout of microcluster that we cannot work around yet. It is addressed in https://github.com/canonical/microcluster/pull/105.
On our side, we also work towards reducing the overall time that the commands need to finish which eventually also "fixes" this issue. A first effort is done in #339 with a follow-up PR coming soon to make those commands even faster by moving the last pieces into an async approach.
I will close this issue in favour of #321.
Please describe the question or issue you're facing with "Getting started - Canonical Kubernetes documentation".
Hello,
Following the Getting Started on an environment connected to the internet, bootstrap fails to create the worker node and pods remain in pending:
Could this be due to me running as root? Is this a known limitation?
Thank you, Peter
Reported from: https://documentation.ubuntu.com/canonical-kubernetes/latest/tutorial/getting-started/