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

Could not init k8s due to calico #9624

Open
crackun24 opened this issue Dec 19, 2024 · 1 comment
Open

Could not init k8s due to calico #9624

crackun24 opened this issue Dec 19, 2024 · 1 comment

Comments

@crackun24
Copy link

This is my k8s init command :

sudo kubeadm init \
--apiserver-advertise-address=192.168.0.104 \
--control-plane-endpoint=k8s-master \
--kubernetes-version=v1.30.1 \
--service-cidr=10.50.0.0/16 \
--pod-network-cidr=10.60.0.0/16 \
--cri-socket=unix:///run/containerd/containerd.sock

journalctl -u kubelet -f

journalctl -u kubelet -f
12月 20 01:29:58 k8s-master kubelet[300694]: E1220 01:29:58.279782  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"89c8db96-7d17-4af8-86c9-4b6efc775c3a\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:29:58 k8s-master kubelet[300694]: E1220 01:29:58.279820  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"89c8db96-7d17-4af8-86c9-4b6efc775c3a\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="kube-system/coredns-678bb8c96f-w9x6w" podUID=89c8db96-7d17-4af8-86c9-4b6efc775c3a
12月 20 01:29:59 k8s-master kubelet[300694]: E1220 01:29:59.198619  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b"
12月 20 01:29:59 k8s-master kubelet[300694]: E1220 01:29:59.198683  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b}
12月 20 01:29:59 k8s-master kubelet[300694]: E1220 01:29:59.198747  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"d55af10d-349d-49d2-9829-0c089efad0bf\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:29:59 k8s-master kubelet[300694]: E1220 01:29:59.198796  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"d55af10d-349d-49d2-9829-0c089efad0bf\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="kube-system/coredns-678bb8c96f-xjk6c" podUID=d55af10d-349d-49d2-9829-0c089efad0bf
12月 20 01:30:01 k8s-master kubelet[300694]: E1220 01:30:01.235068  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2"
12月 20 01:30:01 k8s-master kubelet[300694]: E1220 01:30:01.235125  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2}
12月 20 01:30:01 k8s-master kubelet[300694]: E1220 01:30:01.235183  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"53aa91d8-6155-4650-9a52-551b40d0eaa9\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:01 k8s-master kubelet[300694]: E1220 01:30:01.235226  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"53aa91d8-6155-4650-9a52-551b40d0eaa9\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="calico-system/calico-kube-controllers-96b66ffc4-9zskf" podUID=53aa91d8-6155-4650-9a52-551b40d0eaa9
12月 20 01:30:13 k8s-master kubelet[300694]: E1220 01:30:13.223744  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c"
12月 20 01:30:13 k8s-master kubelet[300694]: E1220 01:30:13.223829  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c}
12月 20 01:30:13 k8s-master kubelet[300694]: E1220 01:30:13.223889  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:13 k8s-master kubelet[300694]: E1220 01:30:13.223932  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="calico-system/csi-node-driver-dnsz4" podUID=4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127
12月 20 01:30:22 k8s-master kubelet[300694]: E1220 01:30:22.282198  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866"
12月 20 01:30:22 k8s-master kubelet[300694]: E1220 01:30:22.282268  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866}
12月 20 01:30:22 k8s-master kubelet[300694]: E1220 01:30:22.282347  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"89c8db96-7d17-4af8-86c9-4b6efc775c3a\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:22 k8s-master kubelet[300694]: E1220 01:30:22.282406  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"89c8db96-7d17-4af8-86c9-4b6efc775c3a\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"dac7aa7d19b96d792188772b7c47147e0170a2391c3c956897c9c2ab0e724866\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="kube-system/coredns-678bb8c96f-w9x6w" podUID=89c8db96-7d17-4af8-86c9-4b6efc775c3a
12月 20 01:30:23 k8s-master kubelet[300694]: E1220 01:30:23.187850  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b"
12月 20 01:30:23 k8s-master kubelet[300694]: E1220 01:30:23.187919  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b}
12月 20 01:30:23 k8s-master kubelet[300694]: E1220 01:30:23.188001  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"d55af10d-349d-49d2-9829-0c089efad0bf\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:23 k8s-master kubelet[300694]: E1220 01:30:23.188071  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"d55af10d-349d-49d2-9829-0c089efad0bf\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"e74c6ec1b788d9bb8108794ea437ef7350032f0a9924cc560ce74f586dfeb88b\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="kube-system/coredns-678bb8c96f-xjk6c" podUID=d55af10d-349d-49d2-9829-0c089efad0bf
12月 20 01:30:26 k8s-master kubelet[300694]: E1220 01:30:26.214515  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2"
12月 20 01:30:26 k8s-master kubelet[300694]: E1220 01:30:26.214578  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2}
12月 20 01:30:26 k8s-master kubelet[300694]: E1220 01:30:26.214643  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"53aa91d8-6155-4650-9a52-551b40d0eaa9\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:26 k8s-master kubelet[300694]: E1220 01:30:26.214690  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"53aa91d8-6155-4650-9a52-551b40d0eaa9\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"522ded7c51997dbe09d4959935f7ae41c4e8aef7cb1b4d9465a867df29c799d2\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="calico-system/calico-kube-controllers-96b66ffc4-9zskf" podUID=53aa91d8-6155-4650-9a52-551b40d0eaa9
12月 20 01:30:38 k8s-master kubelet[300694]: E1220 01:30:38.217716  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c"
12月 20 01:30:38 k8s-master kubelet[300694]: E1220 01:30:38.217775  300694 kuberuntime_manager.go:1312] "Failed to stop sandbox" podSandboxID={Type:containerd ID:a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c}
12月 20 01:30:38 k8s-master kubelet[300694]: E1220 01:30:38.217829  300694 kuberuntime_manager.go:1038] "killPodWithSyncResult failed" err="failed to \"KillPodSandbox\" for \"4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\""
12月 20 01:30:38 k8s-master kubelet[300694]: E1220 01:30:38.217868  300694 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbox\" for \"4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a11ee70c923801bab71c89bc3b972401b7dacdbffc534ec674864096528bdc4c\\\": plugin type=\\\"calico\\\" failed (delete): error getting ClusterInformation: Get \\\"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\\\": EOF\"" pod="calico-system/csi-node-driver-dnsz4" podUID=4c2fbf2f-4cff-4b58-b5b1-1d6a1f085127
12月 20 01:30:40 k8s-master kubelet[300694]: E1220 01:30:40.236236  300694 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"261079ef9575431602f5a08fcd11cb29757735ea90f0dafcc06833dcfb6eeaae\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" podSandboxID="261079ef9575431602f5a08fcd11cb29757735ea90f0dafcc06833dcfb6eeaae"
12月 20 01:30:40 k8s-master kubelet[300694]: E1220 01:30:40.236296  300694 kuberuntime_gc.go:180] "Failed to stop sandbox before removing" err="rpc error: code = Unknown desc = failed to destroy network for sandbox \"261079ef9575431602f5a08fcd11cb29757735ea90f0dafcc06833dcfb6eeaae\": plugin type=\"calico\" failed (delete): error getting ClusterInformation: Get \"https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF" sandboxID="261079ef9575431602f5a08fcd11cb29757735ea90f0dafcc06833dcfb6eeaae"

kubectl get pods -A

kubectl get pods -A
NAMESPACE         NAME                                      READY   STATUS              RESTARTS   AGE
calico-system     calico-kube-controllers-96b66ffc4-9zskf   0/1     ContainerCreating   0          7m19s
calico-system     calico-node-c4wmv                         1/1     Running             0          7m19s
calico-system     calico-typha-c99bdff4c-wfgz8              1/1     Running             0          7m19s
calico-system     csi-node-driver-dnsz4                     0/2     ContainerCreating   0          7m19s
kube-system       coredns-678bb8c96f-w9x6w                  0/1     ContainerCreating   0          8m1s
kube-system       coredns-678bb8c96f-xjk6c                  0/1     ContainerCreating   0          8m1s
kube-system       etcd-k8s-master                           1/1     Running             3          8m15s
kube-system       kube-apiserver-k8s-master                 1/1     Running             3          8m15s
kube-system       kube-controller-manager-k8s-master        1/1     Running             4          8m15s
kube-system       kube-proxy-glv2l                          1/1     Running             0          8m1s
kube-system       kube-scheduler-k8s-master                 1/1     Running             4          8m15s
tigera-operator   tigera-operator-76ff79f7fd-r7rcz          1/1     Running             0          7m51s

@caseydavenport
Copy link
Member

@crackun24 please fill out the issue template. We need to know what environment you are running in, how you installed Calico, what version of Calico you have installed, at a minimum. The template makes sure we have the information we need.

error getting ClusterInformation: Get "https://10.50.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default\": EOF"

This sounds like either the Calico CNI plugin is not configured correctly to talk to the API server, or the API server is returning a bad response to the CNI plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants