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
Join cluster error #1291
Comments
Can you tell us the versions of both Karmada and kubectl-karmada?
|
make kubectl-karmada by the latest codes |
What's the output of Which version Karmada do you use? |
[root@k8s-master ~]# kubectl karmada version |
Hi @chenrc0529-ai , have you ever found the reason why you failed? |
Not yet |
How can i solve this issue? |
Still don't know which version you are using. |
No version info. |
I pull the latest codes from github in Jan 13. Because i cannot download the image, so i modify the image source, then make kubectl-karmada in local. |
|
i met the same question. i remember that it's can join cluster a few days ago. but now it show the errmsg: |
@SZT0728 , you can check
Check whether it is the latest, |
Get it when you connect to |
apiVersion: admissionregistration.k8s.io/v1
|
now i join the cluster, it show the error like this issue' describe |
hi @chenrc0529-ai is your problem solved? |
hi @SZT0728 Is ectd not persistent and restarted? |
no, it's normal |
Not yet |
Can you take a look at your
|
[root@k8s-master ~]# kubectl --kubeconfig /etc/karmada/karmada-apiserver.config get apiservices | grep karmada |
Hi @chenrc0529-ai |
I modify the file pkg/util/secret.go, and rebuild the kubectl-karmada, the error still exist.
I modify the file pkg/util/secret.go, and rebuild the kubectl-karmada, the error still exist. |
Well, @chenrc0529-ai Do you know how reproduce it ? I can help reproduce it on my side. By the way, does the cluster |
I met similar issue, and the log in karmada-aggregated-apiserver says |
Same issue with the latest release, while using v0.10.1 there is no such problem
Maybe need to wait for a new release? Do we have a plan? |
Hi @chenrc0529-ai @SZT0728 @chenrc0529-ai @MingZhang-YBPS @YuxiJin-tobeyjin everybody. Can someone provide a full process for reproducing the problem? I use the v1.0.1 version and make kubectl-karmada on my local site, but didn't reproduce the error. There are a few questions that need to be confirmed:
|
Is the cluster added for the first time? kubectl karmada version
whether the karmada version is upgraded from an earlier version Reproduce: 1、deploy a local k8s cluster 2、bash remote-up-karmada.sh ~/.kube/config kubernetes-admin@cluster.local CLUSTER_IP_ONLY=true
3、kubectl config rename-context "kubernetes-admin@cluster.local" "host" --kubeconfig=host-config
4、kubectl karmada join host --cluster-kubeconfig=host-config
Hope this helps. |
Hi @YuxiJin-tobeyjin, I follow your step, it works ok on my side. Can you get clusters correctly with the command:
|
|
Is this context not used when you join a cluster? |
Yes, of course i did, the logs are as follows:
Maybe the reason is
|
The error info is different from before. Maybe check the logs for the 'Karmada-webhook' pod to see what's going on. |
@YuxiJin-tobeyjin I encountered the same problem,it can be solved by doing the following:
|
Thanks a lot @wenhuwang , problem solves. |
We remove Is there something wrong? |
In conclusion, two causes are found to cause the failure to join the cluster:
|
Close first, we can reopen it if anyone occurs this problem again. /close |
@XiShanYongYe-Chang: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[root@k8s-master ~]# kubectl karmada join kubernetes-admin --kubeconfig=/etc/karmada/karmada-apiserver.config --cluster-kubeconfig=$HOME/.kube/config
W0120 16:17:30.264037 12485 cluster.go:106] failed to create cluster(kubernetes-admin). error: Cluster.cluster.karmada.io "kubernetes-admin" is invalid: [spec.secretRef.namespace: Required value, spec.secretRef.name: Required value, spec.impersonatorSecretRef.namespace: Required value, spec.impersonatorSecretRef.name: Required value]
W0120 16:17:30.264245 12485 cluster.go:50] failed to create cluster(kubernetes-admin). error: Cluster.cluster.karmada.io "kubernetes-admin" is invalid: [spec.secretRef.namespace: Required value, spec.secretRef.name: Required value, spec.impersonatorSecretRef.namespace: Required value, spec.impersonatorSecretRef.name: Required value]
Error: failed to create cluster(kubernetes-admin) object. error: Cluster.cluster.karmada.io "kubernetes-admin" is invalid: [spec.secretRef.namespace: Required value, spec.secretRef.name: Required value, spec.impersonatorSecretRef.namespace: Required value, spec.impersonatorSecretRef.name: Required value]
kubectl-karmada version:
make kubectl-karmada by the latest codes in github
[root@k8s-master ~]# kubectl-karmada version
kubectl karmada version: version.Info{GitVersion:"", GitCommit:"", GitTreeState:"clean", BuildDate:"2022-01-20T02:30:56Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: