-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiting for vcluster to come up #1584
Comments
Hi @eumel8, thanks for reporting this issue. We will take a look at it. To help us get started, can you confirm that you can connect to the virtual cluster from outside the host cluster? Or do you attempt do it from within the pod, because outside access is not possible at all? |
Hey @eumel8 , I think I have an idea what might be going on. AFAIK, by default
Now, obviously this doesn't work within your kubernetes cluster.
I think that should work from within the cluster. |
Hello @heiko-braun , thanks for taking a look in this issue. My initial reaction was just wondering, that I can make So, I start debugging and ended up here, with print out the error message:
So, this ServiceAccount with this token in this Pod has no access to the Secret with the cluster certificates. After fix RBAC it works then expected:
Solved for me, but debug output can be improved. thx |
Hey @eumel8, I am glad you got it working. And yes, once I tried to reproduce your setup, I've noticed the port-forwarding permissions, amongst others, missing as well. I am curious, what led you to this particular setup? Why manage virtual cluster from pods within the host cluster? |
Hi @heiko-braun, Rancher still lags on Vcluster support. There were plans for integration but no progress the last years. As a workaround we have a Helm chart as part of a Crossplane Composition to register the Vcluster in Rancher. This job needs to run partly from the Vcluster, which was this |
@eumel8 thanks for sharing your case. We have been working on improving the rancher integration and there will some announcements soon. |
What happened?
I have a vcluster instance created in a namespace. From another pod in the same namespace I want to connect with vcluster cli to the vcluster. The ServiceAccount has permissions to get/list pods. I can also execute
vcluster list
and can see the vcluster instance, but I can't connect executevcluster -n <namespace> connect <instance> ...
but the only what I get is "Waiting for vcluster to come up". InCluster kube-config is used. Which connections or resources are required to connect? There is also not additional output with debug.What did you expect to happen?
How can we reproduce it (as minimally and precisely as possible)?
install vcluster instance and an additionally Pod with vcluster/kubectl cli
Anything else we need to know?
Host cluster Kubernetes version
Host cluster Kubernetes distribution
vlcuster version
Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)
OS and Arch
The text was updated successfully, but these errors were encountered: