-
Notifications
You must be signed in to change notification settings - Fork 890
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
Init BUG #5640
Comments
Ah, I have been looking for this. I just came across the same issue. The From my desktop running docker: $ ping 172.18.0.3
PING 172.18.0.3 (172.18.0.3): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
^C
--- 172.18.0.3 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss My kubeconfig: clusters:
- cluster:
certificate-authority-data:
****
server: https://0.0.0.0:64495
name: k3d-karmada-ctl Looking at my k3d cluster: $ kubectl get node -owide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
k3d-karmada-ctl-server-0 Ready control-plane,master 41m v1.27.5+k3s1 172.18.0.3 <none> K3s dev 6.10.4-linuxkit containerd://1.7.3-k3s1 And from within a pod on the cluster: / # ping 172.18.0.3
PING 172.18.0.3 (172.18.0.3): 56 data bytes
64 bytes from 172.18.0.3: seq=0 ttl=64 time=2.190 ms
64 bytes from 172.18.0.3: seq=1 ttl=64 time=0.488 ms
^C
--- 172.18.0.3 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.488/1.339/2.190 ms
/ # curl -k https://172.18.0.3:32443/api/v1/namespaces
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "namespaces is forbidden: User \"system:anonymous\" cannot list resource \"namespaces\" in API group \"\" at the cluster scope",
"reason": "Forbidden",
"details": {
"kind": "namespaces"
},
"code": 403
} It looks like karmada (in my case, Can anyone from the karmada team confirm or reject this? |
Now I have a problem with the certificates. When I run the
I use an Ubuntu Server VM on VirtualBox and I set up two network devices:
The The IP of the How can I resolve this kind of problem? Can anyone form Karamda Team can help me? |
What happened: When i start the init function to install the karmada's control plane all go write until he have to create the karmada-aggregated-apiserver.
The first line of the init command:
The karmada-aggregated-apiserver pod's log:
What you expected to happen: Run the Karmada's control plane on the cluster
How to reproduce it (as minimally and precisely as possible): Run the command
kubectl karmada init
on the kubeconfig file:Anything else we need to know?: I run the cluster with microk8s tool on a VM VirtualBox with ubuntu server. The VM use a only-host device network to interact with other VM and the host OS. In addition there is a Nat device network to enable the VM connect the internet.
Furthermore, I use a Kind cluster on Docker and have the same problem. In this case, the IP of the Armada API server is set to 172.0.18.3. Why did this happen?
$ sudo kubectl karmada init --kubeconfig liqo_kubeconf_florence I1004 14:10:58.952504 441135 deploy.go:250] kubeconfig file: liqo_kubeconf_florence, kubernetes: https://127.0.0.1:33831 I1004 14:10:58.997934 441135 deploy.go:270] karmada apiserver ip: [172.18.0.3] I1004 14:10:59.540915 441135 cert.go:246] Generate ca certificate success. I1004 14:11:00.710949 441135 cert.go:246] Generate karmada certificate success. I1004 14:11:01.231020 441135 cert.go:246] Generate apiserver certificate success. I1004 14:11:01.767231 441135 cert.go:246] Generate front-proxy-ca certificate success. I1004 14:11:02.490846 441135 cert.go:246] Generate front-proxy-client certificate success. I1004 14:11:03.092517 441135 cert.go:246] Generate etcd-ca certificate success. I1004 14:11:03.662452 441135 cert.go:246] Generate etcd-server certificate success. I1004 14:11:04.161650 441135 cert.go:246] Generate etcd-client certificate success. I1004 14:11:04.161923 441135 deploy.go:366] download crds file:https://github.com/karmada-io/karmada/releases/download/v1.10.2/crds.tar.gz Downloading...[ 100.00% ] Download complete. I1004 14:11:04.946115 441135 deploy.go:608] Create karmada kubeconfig success. I1004 14:11:04.970539 441135 idempotency.go:267] Namespace karmada-system has been created or updated. I1004 14:11:05.024231 441135 idempotency.go:291] Service karmada-system/etcd has been created or updated. I1004 14:11:05.024298 441135 deploy.go:432] Create etcd StatefulSets I1004 14:11:08.043761 441135 deploy.go:441] Create karmada ApiServer Deployment I1004 14:11:08.065656 441135 idempotency.go:291] Service karmada-system/karmada-apiserver has been created or updated. I1004 14:11:37.875666 441135 deploy.go:453] Create karmada aggregated apiserver Deployment I1004 14:11:37.904226 441135 idempotency.go:291] Service karmada-system/karmada-aggregated-apiserver has been created or updated. F1004 14:12:09.727513 441135 deploy.go:74] unable to create Namespace: Post "https://172.18.0.3:32443/api/v1/namespaces": dial tcp 172.18.0.3:32443: i/o timeout
How can i resolve this problem? Is there some problem with the apiserver configuration? Can I custom the IP address that is assigned?
Environment:
kubectl-karmada version
orkarmadactl version
): latestThe text was updated successfully, but these errors were encountered: