Skip to content
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

Pull bug #5639

Open
IonBoleac opened this issue Oct 2, 2024 · 1 comment
Open

Pull bug #5639

IonBoleac opened this issue Oct 2, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@IonBoleac
Copy link

IonBoleac commented Oct 2, 2024

What happened: When I try to register in pull mode a cluster situated in a VM ubuntu server VirtualBox with the IP address 192.168.56.104 the output is:
kubectl karmada register 192.168.56.103:32443 --token **** --discovery-token-ca-ce
rt-hash sha256:****
[preflight] Running pre-flight checks
[preflight] All pre-flight checks were passed
[karmada-agent-start] Waiting to perform the TLS Bootstrap
W1002 23:43:19.955485 6699 register.go:349] Failed to remove bootstrapKubeConfigFile: remove /etc/karmada/bootstrap-karmada-agent.conf: no such file or directory
error: couldn't validate the identity of the API Server: Get "https://192.168.56.103:32443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, 10.0.2.15, 79.18.53.33, not 192.168.56.103

The first line of init command are:
sudo kubectl karmada init --kubeconfig config
I1002 23:20:51.327231 96917 deploy.go:255] kubeconfig file: config, kubernetes: https://192.168.56.103:16443
W1002 23:20:51.368141 96917 node.go:52] The kubernetes cluster does not have a Master role.
I1002 23:20:51.368163 96917 node.go:60] Randomly select 3 Node IPs in the kubernetes cluster.
I1002 23:20:51.376886 96917 deploy.go:275] karmada apiserver ip: [10.0.2.15]

How can I resolve this problem?

Environment:

  • Karmada version: latest
  • kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version): latest
  • Others: I use a VM with ubuntu server and the cluster is created with microk8s. To run VM I use Virtual Box.
@IonBoleac IonBoleac added the kind/bug Categorizes issue or PR as related to a bug. label Oct 2, 2024
@IonBoleac IonBoleac changed the title Init bug Pull bug Oct 2, 2024
@RainbowMango
Copy link
Member

cc @chaosi-zju Can you help to take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: No status
Development

No branches or pull requests

2 participants