Describe pod shows "open /run/flannel/subnet.env: no such file or directory"

Dear All,
I am trying to trouble shoot
When I am checking the pods using the describe command
kubectl describe pod mmy-pod

I am seeing this.

Warning FailedCreatePodSandBox 2m44s (x6768 over 24h) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “XXXX”: plugin type=“flannel” failed (add): loadFlannelSubnetEnv failed: open /run/flannel/subnet.env: no such file or directory

I have installed flannel network driver by giving

kubectl apply -f

Requesting guidance on how to leads on how to trouble shoot and go ahead

Cluster information:

Client Version: v1.27.3
Kustomize Version: v5.0.1
Server Version: v1.27.3
Cloud being used: bare metal
Installation method: deb
Host OS: Ubuntu 22.04
CNI and version:
CRI and version:

Hello Joseph,

I think what you are missing are the rbac rules for flannel, double check that the flannel you have downloaded does fulfill the rbac permissions settings of your cluster, I think I have hit this issue two times so far and so I don’t forget the third time i leave my comment here :smiley:
I hope this helps.

All my best,

1 Like