Hello,
I’m running a bunch of kubernetes_manifest
resources in terraform to add some CRDs for metallb. The problem is it seems that I’m doing it to soon. The metallb pods start only after the workers have been bootstrapped.
The kubernetes resources depend on vsphere_virtual_machine.kube_workers
(which is the resource that deploys the workers), but it’s still too soon, it seems. Metallb needs only one worker to be up and running, so I thought that by the end of the provisioning of the 3rd node, it should be ok, but it seems that’s not happening.
So the error I’m getting is that it cannot connect to metallb service, I get a timeout. Is there any elegant way of solving this? Waiting for a condition to before applying it/repeating the task (I don’t think it’s possible to do the latter in terraform). From my current experience, I guess the answer is “no”, but I want to make sure I’m not missing anything.