Open jakoberpf opened 1 month ago
@jakoberpf thanks for creating this issue! The problem is that the gitlab runner doesn't have docker installed so vcluster CLI does port-forwarding here (although I agree the messaging is not clear), which blocks the execution. If you do not want to "connect" to the vcluster after creating it you could just run the create command with --connect=false
to avoid blocking execution.
@FabianKramm that a great explanation thanks. One more question though. I missed to also state that the vcluster is created on a EKS cluster. Being the fact that we are creating the vcluster on a remote EKS, why is docker need on the gitlab runner for the vcluster cli?
@jakoberpf it's needed to start a proxy in the background to forward the connection to the vCluster. If your vCluster is reachable by other means in the gitlab runner, you can also use the --server
flag in vcluster connect
to not start the background proxy, another option would be to create a load balancer via --expose
. All options are described here: https://vcluster.com/docs/vcluster/manage/accessing-vcluster#expose-vcluster
What happened?
When running
vcluster create <name>
from a Gitlab runner the create commands does not end.What did you expect to happen?
The vcluster is create and the command continues or ends.
How can we reproduce it (as minimally and precisely as possible)?
Run
vcluster create <name>
from a Gitlab runner.Anything else we need to know?
The same command works fine on the same cluster but run from my local machine. MacOS, vcluster installed with brew, same version.
Host cluster Kubernetes version
vcluster version
VCluster Config
No special config used...