Open sed-i opened 7 months ago
Hi @sed-i
You could try adding a microk8s status --wait-ready
before the microk8s enable dns
.
Alternatively, the following is also known to work and might be faster:
while ! microk8s kubectl get --raw /readyz; do
echo Waiting for kube-apiserver
sleep 3
done
Summary
I am deploying microk8s using cloud-init on an LXD VM.
Here's the relevant section:
And the output in
/var/log/cloud-init-output.log
:What Should Happen Instead?
I imagine there should be no traceback in this case, even upon such failure.
Reproduction Steps
I cannot reproduce this consistently, only seen it once so far after ~10 successful deployments.
Run
lxc launch ubuntu:22.04 cos-lite --vm < cos-lite.yaml
with this file:Introspection Report
inspection-report-20240402_194215.tar.gz