Closed L30Bola closed 3 hours ago
Sorry to hear you're having trouble
This is working as expected -- tilt creates one kubernetes connection at startup, and won't switch to a new cluster if you create one at runtime. For more info, see:
https://github.com/tilt-dev/tilt/issues/5266 https://github.com/tilt-dev/tilt/issues/2123
Expected Behavior
My resources would be deployed as expected.
Current Behavior
My current
Tiltfile
is as follow:The
kind-config.yaml
is as following (although I think it's unnecessary, sending in case someone wants to see it as well):The
namespace.yaml
is as following (a simple namespace manifest):When I execute a
tilt up
, the cluster is being created as expected but when it reaches the step to create the namespace resource, I receive this error:Steps to Reproduce
tilt up
Context
tilt doctor
OutputAbout Your Use Case
If I stop
tilt
and re-run it without running atilt down
(actrl+c
and thentilt run
), everything works as expected. The above error is probably due to the fact that Tilt runs my kubeconfig when it's initializing and when it tries to create a new resource, the kubeconfig that it read when it was starting didn't have the just-created cluster configuration. Is there a way to make Tilt re-read the kubeconfig manually?Of course, I can split the cluster creation from Tilt, as I've done other times, just this time I wanted to "merge everything" into a simple
tilt up
.