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

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container #304

Open
VietHoang30-23VH opened this issue Feb 17, 2025 · 2 comments
Labels

Comments

@VietHoang30-23VH
Copy link

Hi guys, I got a problem with k8s, this is my first I deploy project with k8s but it doesn't work properly. I tried deploy a project on k8s, but this issue had appeared Warning FailedCreatePodSandBox 119s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "5f47fc25025c072785eb. From searching, I found this related to failure in creating pod. I tried to delete pod, check CNI plugin, free resoures or restart docker and containered service, but it still failed. I need your help.

Image

Image

@zouyee
Copy link
Member

zouyee commented Feb 17, 2025

Did you use the multi-cni plugin?

@VietHoang30-23VH
Copy link
Author

Did you use the multi-cni plugin?
Maybe yes. I guess that Multi-CNI plugin installation is from this command "git clone https://github.com/k8snetworkplumbingwg/multus-cni.git ; cd multus-cni;cat ./deployments/multus-daemonset-thick.yml | kubectl apply -f -".
And I has run these command according to this provided script:

**_kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml
curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom-resources.yaml
sed -ie 's/192.168.0.0/172.24.0.0/g' custom-resources.yaml
kubectl create -f custom-resources.yaml
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
kubectl taint nodes --all node-role.kubernetes.io/master-

curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl
mv calicoctl /usr/local/bin/
chmod +x /usr/local/bin/calicoctl

curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o kubectl-calico
mv kubectl-calico /usr/local/bin/
chmod +x /usr/local/bin/kubectl-calico

git clone https://github.com/k8snetworkplumbingwg/multus-cni.git ; cd multus-cni
cat ./deployments/multus-daemonset-thick.yml | kubectl apply -f -_**

So did multi-cni make this problem, sir?

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

No branches or pull requests

2 participants