-
Notifications
You must be signed in to change notification settings - Fork 21
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
Failed to provision a vCluster using CAPI due to vc-<clustername> secret not found issue #43
Comments
Random guess, are all the capi pods deployed? Maybe you need to add labels to the namespaces to enable podsecurity? Not much to go on here. Watching the logs of all the capi related pods and the vcluster capi pod should yield some clues. |
@dragon119 It's been awhile since you've posted your issue and we made some changes and launched a new release. Can you try out |
I have encountered the same issue with v0.2.0-alpha.2, Kubernetes v1.29.7, and with the CAPI pods up and healthy |
@attilio-oliva Would it possible to share the exact steps/commands you issued to create the virtual cluster with the provider as well as the |
Sure, sorry for having omitted the steps I used to reproduce the problem. The environment is not on Azure, but on a local VM used just for testing with Ubuntu server 22.04 LTS. Furthermore, I am using this VM as a single node cluster (again just for testing). I can consistently reproduce this issue by:
|
If I try to see the generated secrets (
But the warning states: |
Thx for the details. Does this also happen when you use the vCluster CLI directly instead of using the CAPI provider? So essentially:
Directly after the creation, do you see any error logs? E.g. by issuing:
|
I found out there was a problem with the default Persistent Volume. After fixing it, I can create the cluster directly using vCluster CLI with no problem. Furthermore, after waiting a bit, the warning goes away and the cluster goes ready also for CAPI. So seems like it is a temporary warning and not very useful in case you get an error during the vCluster scheduling, but there is no actual problem for the provider by itself. I suggest potential future readers to proceed with @johannesfrey answer and if required use |
Glad that it worked. Yeah, the provider is "just" a means of deploying virtual clusters. So if there is anything preventing the virtual cluster itself from starting up, one has to look for the reasons in the virtual cluster. But, as you said, as there is another component involved this might not be that obvious 🙂. |
I'm using CAPI to provision vCluster on the host cluster on Azure then getting this error 'Secret "vc-vcluster1" not found '. 'vcluster1' is the name of the cluster I'm trying to provision. There's another host cluster where I can successfully provision vCluster via CAPI. In the successful provisioning process, the secret seems to be automatically created by CAPI provider. Do I need to setup something in the host cluster to create this secret?
NAME READY SEVERITY REASON SINCE MESSAGE
Cluster/vcluster1 False Warning CheckFailed 3d21h Secret "vc-vcluster1" not found
└─ControlPlane - VCluster/vcluster1 False Warning CheckFailed 3d21h Secret "vc-vcluster1" not found
The text was updated successfully, but these errors were encountered: