FailedCreatePodSandBox

I have been troubleshooting this for a bit of time here but have not found further documentation (possibly due to how I am searching/troubleshooting). I can show the manifest, but I do not think that is the issue.

I have utilized the documentation from the Kubernetes deployment process.
I appreciate your time…

Below is the error I receive when deplying.

Commands run

kubectl apply -f draft-nginx-manifest.yaml

After running this, it deploys and the status is shown below.

*@*:~$ kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-cbdccf466-2l64z 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-7r57h 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-8r2th 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-db7k6 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-grbht 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-tp5qr 0/1 ContainerCreating 0 12d

*@*:~$ kubectl get deploy NAME READY UP-TO-DATE AVAILABLE AGE nginx-deployment 0/6 6 0 12d

Warning FailedCreatePodSandBox 75s (x65421 over 9d) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "e1e24f4013948e78a958f2ff2cc4e3b0f20af64744158dfe965c57b31cb891fb": plugin type="flannel" failed (add): loadFlannelSubnetEnv failed: open /run/flannel/subnet.env: no such file or directory

To preface, I am very new and still exploring the manifest creation/testing Kubernetes.

Cluster information:

Kubernetes version:

Client Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.3”, GitCommit:“25b4e43193bcda6c7328a6d147b1fb73a33f1598”, GitTreeState:“clean”, BuildDate:“2023-06-14T09:53:42Z”, GoVersion:“go1.20.5”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.3”, GitCommit:“25b4e43193bcda6c7328a6d147b1fb73a33f1598”, GitTreeState:“clean”, BuildDate:“2023-06-14T09:47:40Z”, GoVersion:“go1.20.5”, Compiler:“gc”, Platform:“linux/amd64”}

Cloud being used: bare-metal

Installation method:

Host OS: Ubuntu 22.04.2 LTS

CNI and version:

{
“name”: “cbr0”,
“cniVersion”: “0.3.1”,
“plugins”: [
{
“type”: “flannel”,
“delegate”: {
“hairpinMode”: true,
“isDefaultGateway”: true
}
},
{
“type”: “portmap”,
“capabilities”: {
“portMappings”: true
}
}
]
}

CRI and version:

containerd://1.6.21