Closed anupshandilya closed 1 year ago
hey @anupshandilya , thanks for creating this issue. I suspect this is because the upstream images that the plugin.yaml refers to currently are quiet old and since then we have changed the plugin registration mechanism with the vcluster server. I tried the devspace.yaml
to deploy the plugin and run the latest code against the created vcluster and it seems to be working fine. I suggest you can try that for the example.
Hi @ishankhare07
Thanks for you response.
In the devspace.yaml
of crd-sync plugin, I see image of another example - vcluster-example-pull-sycret-sync
. Is this fine?
https://github.com/loft-sh/vcluster-sdk/blob/main/examples/crd-sync/devspace.yaml
vars:
- name: PLUGIN_IMAGE
value: ghcr.io/loft-sh/vcluster-example-pull-sycret-sync
Did you suggest to try above or use the following image ?
ghcr.io/loft-sh/vcluster-example-crd-sync:latest
hey @anupshandilya , As long as you're testing against a local cluster it won't matter as you would be building and running the code from inside the opened shell to the pod. In case you want to try this against an upstream cluster, I suggest you can change the PLUGIN_IMAGE
value to your own docker hub handle and execute devspace dev -bd
this would build
and deploy
the latest image on your machine to the upstream cluster for you to test.
hi @ishankhare07
Do you mean to say that we need to build the crd-sync plugin latest code to generate the image and use that for testing?
Hey, sorry for causing the confusion, you can use the ghcr.io/loft-sh/vcluster-example-crd-sync:latest
or ghcr.io/loft-sh/vcluster-example-pull-sycret-sync
in the devspace, it should not be important. What you will be building is the code itself, not the whole container image. Try these steps:
devspace dev
go run -mod vendor main.go
- mentioned here. Run this and it should work for you.Hi @ishankhare07
I retested taking latest image - ghcr.io/loft-sh/vcluster-example-crd-sync:latest
on OpenShift 4.11 with vcluster 0.12.0 helm chart.
Still, experiencing the issue as originally described in the description.
On the other hand, cert-manager-plugin works.
hey @anupshandilya, as informed earlier these images you're referring to have not been built with the latest code. If you want to try this example you'll have to use the devspace method as suggested previously
Hi @ishankhare07
I see the point now. Thanks. Will check
Closing this for now, if still an issue please feel free to reopen
What happened?
Hi,
I am opening this issue to request support on what could be done to solve this problem. I appreciate your valuable advise.
I am trying to deploy vcluster 0.12.0 with crd-sync plugin added as a helm chart on OpenShift. syncer container is blocked waiting for crd-sync plugin to register. crd-sync container is trying to connect with vcluster but is unable to do it(looks like). This situation persists and thus causes a liveness/readiness check failures on the syncer endpoint causing the pod to be restarted. This works fine on vcluster 0.8.1. The issue is from 0.9.x onwards.
Link to crd-sync plugin : https://github.com/loft-sh/vcluster-sdk/tree/main/examples/crd-sync
What did you expect to happen?
crd-sync plugin was successfully deployed. vcluster pods are up and in running state.
How can we reproduce it (as minimally and precisely as possible)?
wget https://charts.loft.sh/charts/vcluster-0.12.0.tgz tar xvf vcluster-0.12.0.tgz helm install vcluster ./vcluster -f vcluster_values.yaml
Anything else we need to know?
It works fine with vcluster 0.8.1 version. I can connect to vcluster and create cars instance inside vcluster which gets synced onto host OpenShift cluster.
Host cluster Kubernetes version
Host cluster Kubernetes distribution
vlcuster version
Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)
OS and Arch