-
Notifications
You must be signed in to change notification settings - Fork 31
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
Adding 1.28v kubevirt cluster as provider - help with tokens #976
Comments
Could someone help on this , not sure what is wrong here... |
BUMP! |
are you trying to add a remote k8s provider? $ kubectl -n konveyor-forklift get serviceaccount forklift-controller -o jsonpath='{.secrets[0].name}' and then grab if from the secret |
This should be run from the cluster which I am adding to the forklift? @bennyz |
I dont have forklift deployed in new cluster where am adding , do I have to install to use this? I thought we just need to add it as a provider ... please correct me Also , I remember tokens are not created automatically from 1.24 k8s , we have to generate...please link me to any repo or files which would help me to create service account... @yaacov @bennyz |
Credentials |
hi, here is a short example of using service accounts |
Thanks @yaacov again! it helped me create the tokens and able to add it...Is there any requirement for migrating vms between two kubevirt clusters other than k8s version to be 1.26+/ I have source and destination providers as kubevirt clusters and the error which am getting is for VM unmapped networks - howerver network mappings are getting created in the mapings tab - sharing logs below:
Adding to this : Do we have a requirement to have the vms in same namespace i.e konveyor-forklift? |
Also , can we be specific
Think this is where am running into issues with the network attachment definitions...#976 (comment) For forklift to operate without issues, do we have to use default ns for creating service accounts or konveyor-forklift? |
Still no luck , followed below:
Also , able to query the APIs for cluster details which works! But when am trying to add the cluster to provider it is still failing invalid secret.... Also , for the URL am providing the link from output of kubectl cluster-info , dont know what is wrong... |
|
I am creating a new provider , v1.28 k8s / kubevirt cluster - I need to provide the
1.URL - which am giving as the output of kubectl cluster-info and the IP with :6443 port as output
2.Provider credentials
Service account bearer token : I created a new namespace konveyor-forklift and a service account named konveyor-forklift
Did a clusterrole binding as below
clusters:
certificate-authority-data output of this and decoded into certificate file
This is not working and giving error:
Invalid token, a valid Kubernetes service account token is required
Can I get some guidance on what am doing wrong and what is the best way to accomplish this... @ahadas @yaacov
The text was updated successfully, but these errors were encountered: